CleanRoomsML / Client / create_configured_model_algorithm
create_configured_model_algorithm#
- CleanRoomsML.Client.create_configured_model_algorithm(**kwargs)#
Creates a configured model algorithm using a container image stored in an ECR repository.
See also: AWS API Documentation
Request Syntax
response = client.create_configured_model_algorithm( name='string', description='string', roleArn='string', trainingContainerConfig={ 'imageUri': 'string', 'entrypoint': [ 'string', ], 'arguments': [ 'string', ], 'metricDefinitions': [ { 'name': 'string', 'regex': 'string' }, ] }, inferenceContainerConfig={ 'imageUri': 'string' }, tags={ 'string': 'string' }, kmsKeyArn='string' )
- Parameters:
name (string) –
[REQUIRED]
The name of the configured model algorithm.
description (string) – The description of the configured model algorithm.
roleArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the role that is used to access the repository.
trainingContainerConfig (dict) –
Configuration information for the training container, including entrypoints and arguments.
imageUri (string) – [REQUIRED]
The registry path of the docker image that contains the algorithm. Clean Rooms ML supports both
registry/repository[:tag]
andregistry/repositry[@digest]
image path formats. For more information about using images in Clean Rooms ML, see the Sagemaker API reference.entrypoint (list) –
The entrypoint script for a Docker container used to run a training job. This script takes precedence over the default train processing instructions. See How Amazon SageMaker Runs Your Training Image for additional information. For more information, see How Sagemaker runs your training image.
(string) –
arguments (list) –
The arguments for a container used to run a training job. See How Amazon SageMaker Runs Your Training Image for additional information. For more information, see How Sagemaker runs your training image.
(string) –
metricDefinitions (list) –
A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon Web Services Clean Rooms ML publishes each metric to all members’ Amazon CloudWatch using IAM role configured in PutMLConfiguration.
(dict) –
Information about the model metric that is reported for a trained model.
name (string) – [REQUIRED]
The name of the model metric.
regex (string) – [REQUIRED]
The regular expression statement that defines how the model metric is reported.
inferenceContainerConfig (dict) –
Configuration information for the inference container that is used when you run an inference job on a configured model algorithm.
imageUri (string) – [REQUIRED]
The registry path of the docker image that contains the inference algorithm. Clean Rooms ML supports both
registry/repository[:tag]
andregistry/repositry[@digest]
image path formats. For more information about using images in Clean Rooms ML, see the Sagemaker API reference.
tags (dict) –
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.
(string) –
(string) –
kmsKeyArn (string) – The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the configured ML model algorithm and associated data.
- Return type:
dict
- Returns:
Response Syntax
{ 'configuredModelAlgorithmArn': 'string' }
Response Structure
(dict) –
configuredModelAlgorithmArn (string) –
The Amazon Resource Name (ARN) of the configured model algorithm.
Exceptions