create_trained_model
¶
create_trained_model(
membership_identifier: UUID,
name: NameString,
configured_model_algorithm_association_arn: ConfiguredModelAlgorithmAssociationArn,
resource_config: ResourceConfig,
data_channels: ModelTrainingDataChannels,
*,
config_overrides: Optional[CleanRoomsMLClientConfig] = None,
hyperparameters: Optional[HyperParameters] = None,
environment: Optional[Environment] = None,
stopping_condition: Optional[StoppingCondition] = None,
incremental_training_data_channels: Optional[
IncrementalTrainingDataChannels
] = None,
training_input_mode: Optional[TrainingInputMode] = None,
description: Optional[ResourceDescription] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
tags: Optional[TagMap] = None,
ml_model_training_payer_account_id: Optional[AccountId] = None,
) -> CreateTrainedModelResponse
Creates a trained model from an associated configured model algorithm using data from any member of the collaboration.
Parameters:
-
membership_identifier(UUID) –The membership ID of the member that is creating the trained model.
-
name(NameString) –The name of the trained model.
-
configured_model_algorithm_association_arn(ConfiguredModelAlgorithmAssociationArn) –The associated configured model algorithm used to train this model.
-
hyperparameters(Optional[HyperParameters], default:None) –Algorithm-specific parameters that influence the quality of the model. You set hyperparameters before you start the learning process.
-
environment(Optional[Environment], default:None) –The environment variables to set in the Docker container.
-
resource_config(ResourceConfig) –Information about the EC2 resources that are used to train this model.
-
stopping_condition(Optional[StoppingCondition], default:None) –The criteria that is used to stop model training.
-
incremental_training_data_channels(Optional[IncrementalTrainingDataChannels], default:None) –Specifies the incremental training data channels for the trained model.
Incremental training allows you to create a new trained model with updates without retraining from scratch. You can specify up to one incremental training data channel that references a previously trained model and its version.
Limit: Maximum of 20 channels total (including both
incrementalTrainingDataChannelsanddataChannels). -
data_channels(ModelTrainingDataChannels) –Defines the data channels that are used as input for the trained model request.
Limit: Maximum of 20 channels total (including both
dataChannelsandincrementalTrainingDataChannels). -
training_input_mode(Optional[TrainingInputMode], default:None) –The input mode for accessing the training data. This parameter determines how the training data is made available to the training algorithm. Valid values are:
-
File- The training data is downloaded to the training instance and made available as files. -
FastFile- The training data is streamed directly from Amazon S3 to the training algorithm, providing faster access for large datasets. -
Pipe- The training data is streamed to the training algorithm using named pipes, which can improve performance for certain algorithms.
-
-
description(Optional[ResourceDescription], default:None) –The description of the trained model.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the trained ML model and the associated data.
-
tags(Optional[TagMap], default:None) –The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
-
ml_model_training_payer_account_id(Optional[AccountId], default:None) –The account ID of the member that is responsible for paying for model training costs.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–You can't complete this action because another resource depends on this resource.
-
InternalServiceException–An internal service error occurred. Retry your request. If the problem persists, contact AWS Support.
-
ResourceNotFoundException–The resource you are requesting does not exist.
-
ServiceQuotaExceededException–You have exceeded your service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request parameters for this request are incorrect.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cleanroomsml/_services/clean_rooms_ml.py
3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 | |