Amazon SageMaker Service

2024/07/18 - Amazon SageMaker Service - 21 updated api methods

Changes  SageMaker Training supports R5, T3 and R5D instances family. And SageMaker Processing supports G5 and R5D instances family.

CreateAlgorithm (updated) Link ¶
Changes (request)
{'TrainingSpecification': {'SupportedTrainingInstanceTypes': {'ml.r5.12xlarge',
                                                              'ml.r5.16xlarge',
                                                              'ml.r5.24xlarge',
                                                              'ml.r5.2xlarge',
                                                              'ml.r5.4xlarge',
                                                              'ml.r5.8xlarge',
                                                              'ml.r5.large',
                                                              'ml.r5.xlarge',
                                                              'ml.r5d.12xlarge',
                                                              'ml.r5d.16xlarge',
                                                              'ml.r5d.24xlarge',
                                                              'ml.r5d.2xlarge',
                                                              'ml.r5d.4xlarge',
                                                              'ml.r5d.8xlarge',
                                                              'ml.r5d.large',
                                                              'ml.r5d.xlarge',
                                                              'ml.t3.2xlarge',
                                                              'ml.t3.large',
                                                              'ml.t3.medium',
                                                              'ml.t3.xlarge'}},
 'ValidationSpecification': {'ValidationProfiles': {'TrainingJobDefinition': {'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                                                                                                     'ml.r5.16xlarge',
                                                                                                                                     'ml.r5.24xlarge',
                                                                                                                                     'ml.r5.2xlarge',
                                                                                                                                     'ml.r5.4xlarge',
                                                                                                                                     'ml.r5.8xlarge',
                                                                                                                                     'ml.r5.large',
                                                                                                                                     'ml.r5.xlarge',
                                                                                                                                     'ml.r5d.12xlarge',
                                                                                                                                     'ml.r5d.16xlarge',
                                                                                                                                     'ml.r5d.24xlarge',
                                                                                                                                     'ml.r5d.2xlarge',
                                                                                                                                     'ml.r5d.4xlarge',
                                                                                                                                     'ml.r5d.8xlarge',
                                                                                                                                     'ml.r5d.large',
                                                                                                                                     'ml.r5d.xlarge',
                                                                                                                                     'ml.t3.2xlarge',
                                                                                                                                     'ml.t3.large',
                                                                                                                                     'ml.t3.medium',
                                                                                                                                     'ml.t3.xlarge'}},
                                                                                                 'InstanceType': {'ml.r5.12xlarge',
                                                                                                                  'ml.r5.16xlarge',
                                                                                                                  'ml.r5.24xlarge',
                                                                                                                  'ml.r5.2xlarge',
                                                                                                                  'ml.r5.4xlarge',
                                                                                                                  'ml.r5.8xlarge',
                                                                                                                  'ml.r5.large',
                                                                                                                  'ml.r5.xlarge',
                                                                                                                  'ml.r5d.12xlarge',
                                                                                                                  'ml.r5d.16xlarge',
                                                                                                                  'ml.r5d.24xlarge',
                                                                                                                  'ml.r5d.2xlarge',
                                                                                                                  'ml.r5d.4xlarge',
                                                                                                                  'ml.r5d.8xlarge',
                                                                                                                  'ml.r5d.large',
                                                                                                                  'ml.r5d.xlarge',
                                                                                                                  'ml.t3.2xlarge',
                                                                                                                  'ml.t3.large',
                                                                                                                  'ml.t3.medium',
                                                                                                                  'ml.t3.xlarge'}}}}}}

Create a machine learning algorithm that you can use in SageMaker and list in the Amazon Web Services Marketplace.

See also: AWS API Documentation

Request Syntax

client.create_algorithm(
    AlgorithmName='string',
    AlgorithmDescription='string',
    TrainingSpecification={
        'TrainingImage': 'string',
        'TrainingImageDigest': 'string',
        'SupportedHyperParameters': [
            {
                'Name': 'string',
                'Description': 'string',
                'Type': 'Integer'|'Continuous'|'Categorical'|'FreeText',
                'Range': {
                    'IntegerParameterRangeSpecification': {
                        'MinValue': 'string',
                        'MaxValue': 'string'
                    },
                    'ContinuousParameterRangeSpecification': {
                        'MinValue': 'string',
                        'MaxValue': 'string'
                    },
                    'CategoricalParameterRangeSpecification': {
                        'Values': [
                            'string',
                        ]
                    }
                },
                'IsTunable': True|False,
                'IsRequired': True|False,
                'DefaultValue': 'string'
            },
        ],
        'SupportedTrainingInstanceTypes': [
            'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
        ],
        'SupportsDistributedTraining': True|False,
        'MetricDefinitions': [
            {
                'Name': 'string',
                'Regex': 'string'
            },
        ],
        'TrainingChannels': [
            {
                'Name': 'string',
                'Description': 'string',
                'IsRequired': True|False,
                'SupportedContentTypes': [
                    'string',
                ],
                'SupportedCompressionTypes': [
                    'None'|'Gzip',
                ],
                'SupportedInputModes': [
                    'Pipe'|'File'|'FastFile',
                ]
            },
        ],
        'SupportedTuningJobObjectiveMetrics': [
            {
                'Type': 'Maximize'|'Minimize',
                'MetricName': 'string'
            },
        ],
        'AdditionalS3DataSource': {
            'S3DataType': 'S3Object'|'S3Prefix',
            'S3Uri': 'string',
            'CompressionType': 'None'|'Gzip'
        }
    },
    InferenceSpecification={
        'Containers': [
            {
                'ContainerHostname': 'string',
                'Image': 'string',
                'ImageDigest': 'string',
                'ModelDataUrl': 'string',
                'ModelDataSource': {
                    'S3DataSource': {
                        'S3Uri': 'string',
                        'S3DataType': 'S3Prefix'|'S3Object',
                        'CompressionType': 'None'|'Gzip',
                        'ModelAccessConfig': {
                            'AcceptEula': True|False
                        },
                        'HubAccessConfig': {
                            'HubContentArn': 'string'
                        }
                    }
                },
                'ProductId': 'string',
                'Environment': {
                    'string': 'string'
                },
                'ModelInput': {
                    'DataInputConfig': 'string'
                },
                'Framework': 'string',
                'FrameworkVersion': 'string',
                'NearestModelName': 'string',
                'AdditionalS3DataSource': {
                    'S3DataType': 'S3Object'|'S3Prefix',
                    'S3Uri': 'string',
                    'CompressionType': 'None'|'Gzip'
                }
            },
        ],
        'SupportedTransformInstanceTypes': [
            'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r6i.large'|'ml.r6i.xlarge'|'ml.r6i.2xlarge'|'ml.r6i.4xlarge'|'ml.r6i.8xlarge'|'ml.r6i.12xlarge'|'ml.r6i.16xlarge'|'ml.r6i.24xlarge'|'ml.r6i.32xlarge'|'ml.m7i.large'|'ml.m7i.xlarge'|'ml.m7i.2xlarge'|'ml.m7i.4xlarge'|'ml.m7i.8xlarge'|'ml.m7i.12xlarge'|'ml.m7i.16xlarge'|'ml.m7i.24xlarge'|'ml.m7i.48xlarge'|'ml.c7i.large'|'ml.c7i.xlarge'|'ml.c7i.2xlarge'|'ml.c7i.4xlarge'|'ml.c7i.8xlarge'|'ml.c7i.12xlarge'|'ml.c7i.16xlarge'|'ml.c7i.24xlarge'|'ml.c7i.48xlarge'|'ml.r7i.large'|'ml.r7i.xlarge'|'ml.r7i.2xlarge'|'ml.r7i.4xlarge'|'ml.r7i.8xlarge'|'ml.r7i.12xlarge'|'ml.r7i.16xlarge'|'ml.r7i.24xlarge'|'ml.r7i.48xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge',
        ],
        'SupportedRealtimeInferenceInstanceTypes': [
            'ml.t2.medium'|'ml.t2.large'|'ml.t2.xlarge'|'ml.t2.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m5d.large'|'ml.m5d.xlarge'|'ml.m5d.2xlarge'|'ml.m5d.4xlarge'|'ml.m5d.12xlarge'|'ml.m5d.24xlarge'|'ml.c4.large'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.large'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5d.large'|'ml.c5d.xlarge'|'ml.c5d.2xlarge'|'ml.c5d.4xlarge'|'ml.c5d.9xlarge'|'ml.c5d.18xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.12xlarge'|'ml.r5.24xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.12xlarge'|'ml.r5d.24xlarge'|'ml.inf1.xlarge'|'ml.inf1.2xlarge'|'ml.inf1.6xlarge'|'ml.inf1.24xlarge'|'ml.dl1.24xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.g6.xlarge'|'ml.g6.2xlarge'|'ml.g6.4xlarge'|'ml.g6.8xlarge'|'ml.g6.12xlarge'|'ml.g6.16xlarge'|'ml.g6.24xlarge'|'ml.g6.48xlarge'|'ml.p4d.24xlarge'|'ml.c7g.large'|'ml.c7g.xlarge'|'ml.c7g.2xlarge'|'ml.c7g.4xlarge'|'ml.c7g.8xlarge'|'ml.c7g.12xlarge'|'ml.c7g.16xlarge'|'ml.m6g.large'|'ml.m6g.xlarge'|'ml.m6g.2xlarge'|'ml.m6g.4xlarge'|'ml.m6g.8xlarge'|'ml.m6g.12xlarge'|'ml.m6g.16xlarge'|'ml.m6gd.large'|'ml.m6gd.xlarge'|'ml.m6gd.2xlarge'|'ml.m6gd.4xlarge'|'ml.m6gd.8xlarge'|'ml.m6gd.12xlarge'|'ml.m6gd.16xlarge'|'ml.c6g.large'|'ml.c6g.xlarge'|'ml.c6g.2xlarge'|'ml.c6g.4xlarge'|'ml.c6g.8xlarge'|'ml.c6g.12xlarge'|'ml.c6g.16xlarge'|'ml.c6gd.large'|'ml.c6gd.xlarge'|'ml.c6gd.2xlarge'|'ml.c6gd.4xlarge'|'ml.c6gd.8xlarge'|'ml.c6gd.12xlarge'|'ml.c6gd.16xlarge'|'ml.c6gn.large'|'ml.c6gn.xlarge'|'ml.c6gn.2xlarge'|'ml.c6gn.4xlarge'|'ml.c6gn.8xlarge'|'ml.c6gn.12xlarge'|'ml.c6gn.16xlarge'|'ml.r6g.large'|'ml.r6g.xlarge'|'ml.r6g.2xlarge'|'ml.r6g.4xlarge'|'ml.r6g.8xlarge'|'ml.r6g.12xlarge'|'ml.r6g.16xlarge'|'ml.r6gd.large'|'ml.r6gd.xlarge'|'ml.r6gd.2xlarge'|'ml.r6gd.4xlarge'|'ml.r6gd.8xlarge'|'ml.r6gd.12xlarge'|'ml.r6gd.16xlarge'|'ml.p4de.24xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.inf2.xlarge'|'ml.inf2.8xlarge'|'ml.inf2.24xlarge'|'ml.inf2.48xlarge'|'ml.p5.48xlarge'|'ml.m7i.large'|'ml.m7i.xlarge'|'ml.m7i.2xlarge'|'ml.m7i.4xlarge'|'ml.m7i.8xlarge'|'ml.m7i.12xlarge'|'ml.m7i.16xlarge'|'ml.m7i.24xlarge'|'ml.m7i.48xlarge'|'ml.c7i.large'|'ml.c7i.xlarge'|'ml.c7i.2xlarge'|'ml.c7i.4xlarge'|'ml.c7i.8xlarge'|'ml.c7i.12xlarge'|'ml.c7i.16xlarge'|'ml.c7i.24xlarge'|'ml.c7i.48xlarge'|'ml.r7i.large'|'ml.r7i.xlarge'|'ml.r7i.2xlarge'|'ml.r7i.4xlarge'|'ml.r7i.8xlarge'|'ml.r7i.12xlarge'|'ml.r7i.16xlarge'|'ml.r7i.24xlarge'|'ml.r7i.48xlarge',
        ],
        'SupportedContentTypes': [
            'string',
        ],
        'SupportedResponseMIMETypes': [
            'string',
        ]
    },
    ValidationSpecification={
        'ValidationRole': 'string',
        'ValidationProfiles': [
            {
                'ProfileName': 'string',
                'TrainingJobDefinition': {
                    'TrainingInputMode': 'Pipe'|'File'|'FastFile',
                    'HyperParameters': {
                        'string': 'string'
                    },
                    'InputDataConfig': [
                        {
                            'ChannelName': 'string',
                            'DataSource': {
                                'S3DataSource': {
                                    'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                                    'S3Uri': 'string',
                                    'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                                    'AttributeNames': [
                                        'string',
                                    ],
                                    'InstanceGroupNames': [
                                        'string',
                                    ]
                                },
                                'FileSystemDataSource': {
                                    'FileSystemId': 'string',
                                    'FileSystemAccessMode': 'rw'|'ro',
                                    'FileSystemType': 'EFS'|'FSxLustre',
                                    'DirectoryPath': 'string'
                                }
                            },
                            'ContentType': 'string',
                            'CompressionType': 'None'|'Gzip',
                            'RecordWrapperType': 'None'|'RecordIO',
                            'InputMode': 'Pipe'|'File'|'FastFile',
                            'ShuffleConfig': {
                                'Seed': 123
                            }
                        },
                    ],
                    'OutputDataConfig': {
                        'KmsKeyId': 'string',
                        'S3OutputPath': 'string',
                        'CompressionType': 'GZIP'|'NONE'
                    },
                    'ResourceConfig': {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                        'InstanceCount': 123,
                        'VolumeSizeInGB': 123,
                        'VolumeKmsKeyId': 'string',
                        'KeepAlivePeriodInSeconds': 123,
                        'InstanceGroups': [
                            {
                                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                                'InstanceCount': 123,
                                'InstanceGroupName': 'string'
                            },
                        ]
                    },
                    'StoppingCondition': {
                        'MaxRuntimeInSeconds': 123,
                        'MaxWaitTimeInSeconds': 123,
                        'MaxPendingTimeInSeconds': 123
                    }
                },
                'TransformJobDefinition': {
                    'MaxConcurrentTransforms': 123,
                    'MaxPayloadInMB': 123,
                    'BatchStrategy': 'MultiRecord'|'SingleRecord',
                    'Environment': {
                        'string': 'string'
                    },
                    'TransformInput': {
                        'DataSource': {
                            'S3DataSource': {
                                'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                                'S3Uri': 'string'
                            }
                        },
                        'ContentType': 'string',
                        'CompressionType': 'None'|'Gzip',
                        'SplitType': 'None'|'Line'|'RecordIO'|'TFRecord'
                    },
                    'TransformOutput': {
                        'S3OutputPath': 'string',
                        'Accept': 'string',
                        'AssembleWith': 'None'|'Line',
                        'KmsKeyId': 'string'
                    },
                    'TransformResources': {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r6i.large'|'ml.r6i.xlarge'|'ml.r6i.2xlarge'|'ml.r6i.4xlarge'|'ml.r6i.8xlarge'|'ml.r6i.12xlarge'|'ml.r6i.16xlarge'|'ml.r6i.24xlarge'|'ml.r6i.32xlarge'|'ml.m7i.large'|'ml.m7i.xlarge'|'ml.m7i.2xlarge'|'ml.m7i.4xlarge'|'ml.m7i.8xlarge'|'ml.m7i.12xlarge'|'ml.m7i.16xlarge'|'ml.m7i.24xlarge'|'ml.m7i.48xlarge'|'ml.c7i.large'|'ml.c7i.xlarge'|'ml.c7i.2xlarge'|'ml.c7i.4xlarge'|'ml.c7i.8xlarge'|'ml.c7i.12xlarge'|'ml.c7i.16xlarge'|'ml.c7i.24xlarge'|'ml.c7i.48xlarge'|'ml.r7i.large'|'ml.r7i.xlarge'|'ml.r7i.2xlarge'|'ml.r7i.4xlarge'|'ml.r7i.8xlarge'|'ml.r7i.12xlarge'|'ml.r7i.16xlarge'|'ml.r7i.24xlarge'|'ml.r7i.48xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge',
                        'InstanceCount': 123,
                        'VolumeKmsKeyId': 'string'
                    }
                }
            },
        ]
    },
    CertifyForMarketplace=True|False,
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type AlgorithmName

string

param AlgorithmName

[REQUIRED]

The name of the algorithm.

type AlgorithmDescription

string

param AlgorithmDescription

A description of the algorithm.

type TrainingSpecification

dict

param TrainingSpecification

[REQUIRED]

Specifies details about training jobs run by this algorithm, including the following:

  • The Amazon ECR path of the container and the version digest of the algorithm.

  • The hyperparameters that the algorithm supports.

  • The instance types that the algorithm supports for training.

  • Whether the algorithm supports distributed training.

  • The metrics that the algorithm emits to Amazon CloudWatch.

  • Which metrics that the algorithm emits can be used as the objective metric for hyperparameter tuning jobs.

  • The input channels that the algorithm supports for training data. For example, an algorithm might support train , validation , and test channels.

  • TrainingImage (string) -- [REQUIRED]

    The Amazon ECR registry path of the Docker image that contains the training algorithm.

  • TrainingImageDigest (string) --

    An MD5 hash of the training algorithm that identifies the Docker image used for training.

  • SupportedHyperParameters (list) --

    A list of the HyperParameterSpecification objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>

    • (dict) --

      Defines a hyperparameter to be used by an algorithm.

      • Name (string) -- [REQUIRED]

        The name of this hyperparameter. The name must be unique.

      • Description (string) --

        A brief description of the hyperparameter.

      • Type (string) -- [REQUIRED]

        The type of this hyperparameter. The valid types are Integer , Continuous , Categorical , and FreeText .

      • Range (dict) --

        The allowed range for this hyperparameter.

        • IntegerParameterRangeSpecification (dict) --

          A IntegerParameterRangeSpecification object that defines the possible values for an integer hyperparameter.

          • MinValue (string) -- [REQUIRED]

            The minimum integer value allowed.

          • MaxValue (string) -- [REQUIRED]

            The maximum integer value allowed.

        • ContinuousParameterRangeSpecification (dict) --

          A ContinuousParameterRangeSpecification object that defines the possible values for a continuous hyperparameter.

          • MinValue (string) -- [REQUIRED]

            The minimum floating-point value allowed.

          • MaxValue (string) -- [REQUIRED]

            The maximum floating-point value allowed.

        • CategoricalParameterRangeSpecification (dict) --

          A CategoricalParameterRangeSpecification object that defines the possible values for a categorical hyperparameter.

          • Values (list) -- [REQUIRED]

            The allowed categories for the hyperparameter.

            • (string) --

      • IsTunable (boolean) --

        Indicates whether this hyperparameter is tunable in a hyperparameter tuning job.

      • IsRequired (boolean) --

        Indicates whether this hyperparameter is required.

      • DefaultValue (string) --

        The default value for this hyperparameter. If a default value is specified, a hyperparameter cannot be required.

  • SupportedTrainingInstanceTypes (list) -- [REQUIRED]

    A list of the instance types that this algorithm can use for training.

    • (string) --

  • SupportsDistributedTraining (boolean) --

    Indicates whether the algorithm supports distributed training. If set to false, buyers can't request more than one instance during training.

  • MetricDefinitions (list) --

    A list of MetricDefinition objects, which are used for parsing metrics generated by the algorithm.

    • (dict) --

      Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

      • Name (string) -- [REQUIRED]

        The name of the metric.

      • Regex (string) -- [REQUIRED]

        A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

  • TrainingChannels (list) -- [REQUIRED]

    A list of ChannelSpecification objects, which specify the input sources to be used by the algorithm.

    • (dict) --

      Defines a named input source, called a channel, to be used by an algorithm.

      • Name (string) -- [REQUIRED]

        The name of the channel.

      • Description (string) --

        A brief description of the channel.

      • IsRequired (boolean) --

        Indicates whether the channel is required by the algorithm.

      • SupportedContentTypes (list) -- [REQUIRED]

        The supported MIME types for the data.

        • (string) --

      • SupportedCompressionTypes (list) --

        The allowed compression types, if data compression is used.

        • (string) --

      • SupportedInputModes (list) -- [REQUIRED]

        The allowed input mode, either FILE or PIPE.

        In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.

        In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.

        • (string) --

          The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

          Pipe mode

          If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

          File mode

          If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

          You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

          For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

          FastFile mode

          If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

          FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

  • SupportedTuningJobObjectiveMetrics (list) --

    A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.

    • (dict) --

      Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter. If you want to define a custom objective metric, see Define metrics and environment variables.

      • Type (string) -- [REQUIRED]

        Whether to minimize or maximize the objective metric.

      • MetricName (string) -- [REQUIRED]

        The name of the metric to use for the objective metric.

  • AdditionalS3DataSource (dict) --

    The additional data source used during the training job.

    • S3DataType (string) -- [REQUIRED]

      The data type of the additional data source that you specify for use in inference or training.

    • S3Uri (string) -- [REQUIRED]

      The uniform resource identifier (URI) used to identify an additional data source used in inference or training.

    • CompressionType (string) --

      The type of compression used for an additional data source used in inference or training. Specify None if your additional data source is not compressed.

type InferenceSpecification

dict

param InferenceSpecification

Specifies details about inference jobs that the algorithm runs, including the following:

  • The Amazon ECR paths of containers that contain the inference code and model artifacts.

  • The instance types that the algorithm supports for transform jobs and real-time endpoints used for inference.

  • The input and output content formats that the algorithm supports for inference.

  • Containers (list) -- [REQUIRED]

    The Amazon ECR registry path of the Docker image that contains the inference code.

    • (dict) --

      Describes the Docker container for the model package.

      • ContainerHostname (string) --

        The DNS host name for the Docker container.

      • Image (string) -- [REQUIRED]

        The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.

        If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

      • ImageDigest (string) --

        An MD5 hash of the training algorithm that identifies the Docker image used for training.

      • ModelDataUrl (string) --

        The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive ( .tar.gz suffix).

        Note

        The model artifacts must be in an S3 bucket that is in the same region as the model package.

      • ModelDataSource (dict) --

        Specifies the location of ML model data to deploy during endpoint creation.

        • S3DataSource (dict) --

          Specifies the S3 location of ML model data to deploy.

          • S3Uri (string) -- [REQUIRED]

            Specifies the S3 path of ML model data to deploy.

          • S3DataType (string) -- [REQUIRED]

            Specifies the type of ML model data to deploy.

            If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix identified by S3Uri always ends with a forward slash (/).

            If you choose S3Object , S3Uri identifies an object that is the ML model data to deploy.

          • CompressionType (string) -- [REQUIRED]

            Specifies how the ML model data is prepared.

            If you choose Gzip and choose S3Object as the value of S3DataType , S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment.

            If you choose None and chooose S3Object as the value of S3DataType , S3Uri identifies an object that represents an uncompressed ML model to deploy.

            If you choose None and choose S3Prefix as the value of S3DataType , S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy.

            If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code:

            • If you choose S3Object as the value of S3DataType , then SageMaker will split the key of the S3 object referenced by S3Uri by slash (/), and use the last part as the filename of the file holding the content of the S3 object.

            • If you choose S3Prefix as the value of S3DataType , then for each S3 object under the key name pefix referenced by S3Uri , SageMaker will trim its key by the prefix, and use the remainder as the path (relative to /opt/ml/model ) of the file holding the content of the S3 object. SageMaker will split the remainder by slash (/), using intermediate parts as directory names and the last part as filename of the file holding the content of the S3 object.

            • Do not use any of the following as file names or directory names:

              • An empty or blank string

              • A string which contains null bytes

              • A string longer than 255 bytes

              • A single dot ( . )

              • A double dot ( .. )

            • Ambiguous file names will result in model deployment failure. For example, if your uncompressed ML model consists of two S3 objects s3://mybucket/model/weights and s3://mybucket/model/weights/part1 and you specify s3://mybucket/model/ as the value of S3Uri and S3Prefix as the value of S3DataType , then it will result in name clash between /opt/ml/model/weights (a regular file) and /opt/ml/model/weights/ (a directory).

            • Do not organize the model artifacts in S3 console using folders. When you create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker restrictions on model artifact file names, leading to model deployment failure.

          • ModelAccessConfig (dict) --

            Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig . You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.

            • AcceptEula (boolean) -- [REQUIRED]

              Specifies agreement to the model end-user license agreement (EULA). The AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.

          • HubAccessConfig (dict) --

            Configuration information for hub access.

            • HubContentArn (string) -- [REQUIRED]

              The ARN of the hub content for which deployment access is allowed.

      • ProductId (string) --

        The Amazon Web Services Marketplace product ID of the model package.

      • Environment (dict) --

        The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

        • (string) --

          • (string) --

      • ModelInput (dict) --

        A structure with Model Input details.

        • DataInputConfig (string) -- [REQUIRED]

          The input configuration object for the model.

      • Framework (string) --

        The machine learning framework of the model package container image.

      • FrameworkVersion (string) --

        The framework version of the Model Package Container Image.

      • NearestModelName (string) --

        The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model. You can find a list of benchmarked models by calling ListModelMetadata .

      • AdditionalS3DataSource (dict) --

        The additional data source that is used during inference in the Docker container for your model package.

        • S3DataType (string) -- [REQUIRED]

          The data type of the additional data source that you specify for use in inference or training.

        • S3Uri (string) -- [REQUIRED]

          The uniform resource identifier (URI) used to identify an additional data source used in inference or training.

        • CompressionType (string) --

          The type of compression used for an additional data source used in inference or training. Specify None if your additional data source is not compressed.

  • SupportedTransformInstanceTypes (list) --

    A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.

    This parameter is required for unversioned models, and optional for versioned models.

    • (string) --

  • SupportedRealtimeInferenceInstanceTypes (list) --

    A list of the instance types that are used to generate inferences in real-time.

    This parameter is required for unversioned models, and optional for versioned models.

    • (string) --

  • SupportedContentTypes (list) --

    The supported MIME types for the input data.

    • (string) --

  • SupportedResponseMIMETypes (list) --

    The supported MIME types for the output data.

    • (string) --

type ValidationSpecification

dict

param ValidationSpecification

Specifies configurations for one or more training jobs and that SageMaker runs to test the algorithm's training code and, optionally, one or more batch transform jobs that SageMaker runs to test the algorithm's inference code.

  • ValidationRole (string) -- [REQUIRED]

    The IAM roles that SageMaker uses to run the training jobs.

  • ValidationProfiles (list) -- [REQUIRED]

    An array of AlgorithmValidationProfile objects, each of which specifies a training job and batch transform job that SageMaker runs to validate your algorithm.

    • (dict) --

      Defines a training job and a batch transform job that SageMaker runs to validate your algorithm.

      The data provided in the validation profile is made available to your buyers on Amazon Web Services Marketplace.

      • ProfileName (string) -- [REQUIRED]

        The name of the profile for the algorithm. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

      • TrainingJobDefinition (dict) -- [REQUIRED]

        The TrainingJobDefinition object that describes the training job that SageMaker runs to validate your algorithm.

        • TrainingInputMode (string) -- [REQUIRED]

          The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

          Pipe mode

          If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

          File mode

          If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

          You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

          For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

          FastFile mode

          If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

          FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

        • HyperParameters (dict) --

          The hyperparameters used for the training job.

          • (string) --

            • (string) --

        • InputDataConfig (list) -- [REQUIRED]

          An array of Channel objects, each of which specifies an input source.

          • (dict) --

            A channel is a named input source that training algorithms can consume.

            • ChannelName (string) -- [REQUIRED]

              The name of the channel.

            • DataSource (dict) -- [REQUIRED]

              The location of the channel data.

              • S3DataSource (dict) --

                The S3 location of the data source that is associated with a channel.

                • S3DataType (string) -- [REQUIRED]

                  If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

                  If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

                  If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

                • S3Uri (string) -- [REQUIRED]

                  Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

                  • A key name prefix might look like this: s3://bucketname/exampleprefix/

                  • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

                  Your input bucket must be located in same Amazon Web Services region as your training job.

                • S3DataDistributionType (string) --

                  If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

                  If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

                  Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

                  In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

                • AttributeNames (list) --

                  A list of one or more attribute names to use that are found in a specified augmented manifest file.

                  • (string) --

                • InstanceGroupNames (list) --

                  A list of names of instance groups that get data from the S3 data source.

                  • (string) --

              • FileSystemDataSource (dict) --

                The file system that is associated with a channel.

                • FileSystemId (string) -- [REQUIRED]

                  The file system id.

                • FileSystemAccessMode (string) -- [REQUIRED]

                  The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

                • FileSystemType (string) -- [REQUIRED]

                  The file system type.

                • DirectoryPath (string) -- [REQUIRED]

                  The full path to the directory to associate with the channel.

            • ContentType (string) --

              The MIME type of the data.

            • CompressionType (string) --

              If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

            • RecordWrapperType (string) --

              Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

              In File mode, leave this field unset or set it to None.

            • InputMode (string) --

              (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

              To use a model for incremental training, choose File input model.

            • ShuffleConfig (dict) --

              A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

              For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

              • Seed (integer) -- [REQUIRED]

                Determines the shuffling order in ShuffleConfig value.

        • OutputDataConfig (dict) -- [REQUIRED]

          the path to the S3 bucket where you want to store model artifacts. SageMaker creates subfolders for the artifacts.

          • KmsKeyId (string) --

            The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

            • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

            • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

            • // KMS Key Alias "alias/ExampleAlias"

            • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

            If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

            The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

          • S3OutputPath (string) -- [REQUIRED]

            Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

          • CompressionType (string) --

            The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

        • ResourceConfig (dict) -- [REQUIRED]

          The resources, including the ML compute instances and ML storage volumes, to use for model training.

          • InstanceType (string) --

            The ML compute instance type.

            Note

            SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

            Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

            • US East (N. Virginia) (us-east-1)

            • US West (Oregon) (us-west-2)

            To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

          • InstanceCount (integer) --

            The number of ML compute instances to use. For distributed training, provide a value greater than 1.

          • VolumeSizeInGB (integer) -- [REQUIRED]

            The size of the ML storage volume that you want to provision.

            ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

            When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

            When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

            To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

            To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

          • VolumeKmsKeyId (string) --

            The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

            Note

            Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

            For a list of instance types that support local instance storage, see Instance Store Volumes.

            For more information about local instance storage encryption, see SSD Instance Store Volumes.

            The VolumeKmsKeyId can be in any of the following formats:

            • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

            • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

          • KeepAlivePeriodInSeconds (integer) --

            The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

          • InstanceGroups (list) --

            The configuration of a heterogeneous cluster in JSON format.

            • (dict) --

              Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

              • InstanceType (string) -- [REQUIRED]

                Specifies the instance type of the instance group.

              • InstanceCount (integer) -- [REQUIRED]

                Specifies the number of instances of the instance group.

              • InstanceGroupName (string) -- [REQUIRED]

                Specifies the name of the instance group.

        • StoppingCondition (dict) -- [REQUIRED]

          Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

          To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts.

          • MaxRuntimeInSeconds (integer) --

            The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

            For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

            For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

            The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

          • MaxWaitTimeInSeconds (integer) --

            The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

            When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

          • MaxPendingTimeInSeconds (integer) --

            The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

      • TransformJobDefinition (dict) --

        The TransformJobDefinition object that describes the transform job that SageMaker runs to validate your algorithm.

        • MaxConcurrentTransforms (integer) --

          The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1.

        • MaxPayloadInMB (integer) --

          The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata).

        • BatchStrategy (string) --

          A string that determines the number of records included in a single mini-batch.

          SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.

        • Environment (dict) --

          The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.

          • (string) --

            • (string) --

        • TransformInput (dict) -- [REQUIRED]

          A description of the input source and the way the transform job consumes it.

          • DataSource (dict) -- [REQUIRED]

            Describes the location of the channel data, which is, the S3 location of the input data that the model can consume.

            • S3DataSource (dict) -- [REQUIRED]

              The S3 location of the data source that is associated with a channel.

              • S3DataType (string) -- [REQUIRED]

                If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for batch transform.

                If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for batch transform.

                The following values are compatible: ManifestFile , S3Prefix

                The following value is not compatible: AugmentedManifestFile

              • S3Uri (string) -- [REQUIRED]

                Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

                • A key name prefix might look like this: s3://bucketname/exampleprefix/ .

                • A manifest might look like this: s3://bucketname/example.manifest The manifest is an S3 object which is a JSON file with the following format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] The preceding JSON matches the following S3Uris : s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uris in this manifest constitutes the input data for the channel for this datasource. The object that each S3Uris points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

          • ContentType (string) --

            The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job.

          • CompressionType (string) --

            If your transform data is compressed, specify the compression type. Amazon SageMaker automatically decompresses the data for the transform job accordingly. The default value is None .

          • SplitType (string) --

            The method to use to split the transform job's data files into smaller batches. Splitting is necessary when the total size of each object is too large to fit in a single request. You can also use data splitting to improve performance by processing multiple concurrent mini-batches. The default value for SplitType is None , which indicates that input data files are not split, and request payloads contain the entire contents of an input object. Set the value of this parameter to Line to split records on a newline character boundary. SplitType also supports a number of record-oriented binary data formats. Currently, the supported record formats are:

            • RecordIO

            • TFRecord

            When splitting is enabled, the size of a mini-batch depends on the values of the BatchStrategy and MaxPayloadInMB parameters. When the value of BatchStrategy is MultiRecord , Amazon SageMaker sends the maximum number of records in each request, up to the MaxPayloadInMB limit. If the value of BatchStrategy is SingleRecord , Amazon SageMaker sends individual records in each request.

            Note

            Some data formats represent a record as a binary payload wrapped with extra padding bytes. When splitting is applied to a binary data format, padding is removed if the value of BatchStrategy is set to SingleRecord . Padding is not removed if the value of BatchStrategy is set to MultiRecord .

            For more information about RecordIO , see Create a Dataset Using RecordIO in the MXNet documentation. For more information about TFRecord , see Consuming TFRecord data in the TensorFlow documentation.

        • TransformOutput (dict) -- [REQUIRED]

          Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

          • S3OutputPath (string) -- [REQUIRED]

            The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. For example, s3://bucket-name/key-name-prefix .

            For every S3 object used as input for the transform job, batch transform stores the transformed data with an . out suffix in a corresponding subfolder in the location in the output prefix. For example, for the input data stored at s3://bucket-name/input-name-prefix/dataset01/data.csv , batch transform stores the transformed data at s3://bucket-name/output-name-prefix/input-name-prefix/data.csv.out . Batch transform doesn't upload partially processed objects. For an input S3 object that contains multiple records, it creates an . out file only if the transform job succeeds on the entire file. When the input contains multiple S3 objects, the batch transform job processes the listed S3 objects and uploads only the output for successfully processed objects. If any object fails in the transform job batch transform marks the job as failed to prompt investigation.

          • Accept (string) --

            The MIME type used to specify the output data. Amazon SageMaker uses the MIME type with each http call to transfer data from the transform job.

          • AssembleWith (string) --

            Defines how to assemble the results of the transform job as a single S3 object. Choose a format that is most convenient to you. To concatenate the results in binary format, specify None . To add a newline character at the end of every transformed record, specify Line .

          • KmsKeyId (string) --

            The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

            • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

            • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

            • Alias name: alias/ExampleAlias

            • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

            If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

            The KMS key policy must grant permission to the IAM role that you specify in your CreateModel request. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

        • TransformResources (dict) -- [REQUIRED]

          Identifies the ML compute instances for the transform job.

          • InstanceType (string) -- [REQUIRED]

            The ML compute instance type for the transform job. If you are using built-in algorithms to transform moderately sized datasets, we recommend using ml.m4.xlarge or ml.m5.large instance types.

          • InstanceCount (integer) -- [REQUIRED]

            The number of ML compute instances to use in the transform job. The default value is 1 , and the maximum is 100 . For distributed transform jobs, specify a value greater than 1 .

          • VolumeKmsKeyId (string) --

            The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume attached to the ML compute instance(s) that run the batch transform job.

            Note

            Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

            For a list of instance types that support local instance storage, see Instance Store Volumes.

            For more information about local instance storage encryption, see SSD Instance Store Volumes.

            The VolumeKmsKeyId can be any of the following formats:

            • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

            • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

            • Alias name: alias/ExampleAlias

            • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

type CertifyForMarketplace

boolean

param CertifyForMarketplace

Whether to certify the algorithm so that it can be listed in Amazon Web Services Marketplace.

type Tags

list

param Tags

An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'AlgorithmArn': 'string'
}

Response Structure

  • (dict) --

    • AlgorithmArn (string) --

      The Amazon Resource Name (ARN) of the new algorithm.

CreateDataQualityJobDefinition (updated) Link ¶
Changes (request)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Creates a definition for a job that monitors data quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor.

See also: AWS API Documentation

Request Syntax

client.create_data_quality_job_definition(
    JobDefinitionName='string',
    DataQualityBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        },
        'StatisticsResource': {
            'S3Uri': 'string'
        }
    },
    DataQualityAppSpecification={
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    DataQualityJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}

            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        }
    },
    DataQualityJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name for the monitoring job definition.

type DataQualityBaselineConfig

dict

param DataQualityBaselineConfig

Configures the constraints and baselines for the monitoring job.

  • BaseliningJobName (string) --

    The name of the job that performs baselining for the data quality monitoring job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

  • StatisticsResource (dict) --

    The statistics resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the statistics resource.

type DataQualityAppSpecification

dict

param DataQualityAppSpecification

[REQUIRED]

Specifies the container that runs the monitoring job.

  • ImageUri (string) -- [REQUIRED]

    The container image that the data quality monitoring job runs.

  • ContainerEntrypoint (list) --

    The entrypoint for a container used to run a monitoring job.

    • (string) --

  • ContainerArguments (list) --

    The arguments to send to the container that the monitoring job runs.

    • (string) --

  • RecordPreprocessorSourceUri (string) --

    An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

  • PostAnalyticsProcessorSourceUri (string) --

    An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

  • Environment (dict) --

    Sets the environment variables in the container that the monitoring job runs.

    • (string) --

      • (string) --

type DataQualityJobInput

dict

param DataQualityJobInput

[REQUIRED]

A list of inputs for the monitoring job. Currently endpoints are supported as monitoring inputs.

  • EndpointInput (dict) --

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

  • BatchTransformInput (dict) --

    Input object for the batch transform job.

    • DataCapturedDestinationS3Uri (string) -- [REQUIRED]

      The Amazon S3 location being used to capture the data.

    • DatasetFormat (dict) -- [REQUIRED]

      The dataset format for your batch transform job.

      • Csv (dict) --

        The CSV dataset used in the monitoring job.

        • Header (boolean) --

          Indicates if the CSV data has a header.

      • Json (dict) --

        The JSON dataset used in the monitoring job

        • Line (boolean) --

          Indicates if the file should be read as a JSON object per line.

      • Parquet (dict) --

        The Parquet dataset used in the monitoring job

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the batch transform data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

type DataQualityJobOutputConfig

dict

param DataQualityJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Specifies networking configuration for the monitoring job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

type StoppingCondition

dict

param StoppingCondition

A time limit for how long the monitoring job is allowed to run before stopping.

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

    Note

    The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide .

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the job definition.

CreateHyperParameterTuningJob (updated) Link ¶
Changes (request)
{'TrainingJobDefinition': {'HyperParameterTuningResourceConfig': {'InstanceConfigs': {'InstanceType': {'ml.r5.12xlarge',
                                                                                                       'ml.r5.16xlarge',
                                                                                                       'ml.r5.24xlarge',
                                                                                                       'ml.r5.2xlarge',
                                                                                                       'ml.r5.4xlarge',
                                                                                                       'ml.r5.8xlarge',
                                                                                                       'ml.r5.large',
                                                                                                       'ml.r5.xlarge',
                                                                                                       'ml.r5d.12xlarge',
                                                                                                       'ml.r5d.16xlarge',
                                                                                                       'ml.r5d.24xlarge',
                                                                                                       'ml.r5d.2xlarge',
                                                                                                       'ml.r5d.4xlarge',
                                                                                                       'ml.r5d.8xlarge',
                                                                                                       'ml.r5d.large',
                                                                                                       'ml.r5d.xlarge',
                                                                                                       'ml.t3.2xlarge',
                                                                                                       'ml.t3.large',
                                                                                                       'ml.t3.medium',
                                                                                                       'ml.t3.xlarge'}},
                                                                  'InstanceType': {'ml.r5.12xlarge',
                                                                                   'ml.r5.16xlarge',
                                                                                   'ml.r5.24xlarge',
                                                                                   'ml.r5.2xlarge',
                                                                                   'ml.r5.4xlarge',
                                                                                   'ml.r5.8xlarge',
                                                                                   'ml.r5.large',
                                                                                   'ml.r5.xlarge',
                                                                                   'ml.r5d.12xlarge',
                                                                                   'ml.r5d.16xlarge',
                                                                                   'ml.r5d.24xlarge',
                                                                                   'ml.r5d.2xlarge',
                                                                                   'ml.r5d.4xlarge',
                                                                                   'ml.r5d.8xlarge',
                                                                                   'ml.r5d.large',
                                                                                   'ml.r5d.xlarge',
                                                                                   'ml.t3.2xlarge',
                                                                                   'ml.t3.large',
                                                                                   'ml.t3.medium',
                                                                                   'ml.t3.xlarge'}},
                           'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                                                  'ml.r5.16xlarge',
                                                                                  'ml.r5.24xlarge',
                                                                                  'ml.r5.2xlarge',
                                                                                  'ml.r5.4xlarge',
                                                                                  'ml.r5.8xlarge',
                                                                                  'ml.r5.large',
                                                                                  'ml.r5.xlarge',
                                                                                  'ml.r5d.12xlarge',
                                                                                  'ml.r5d.16xlarge',
                                                                                  'ml.r5d.24xlarge',
                                                                                  'ml.r5d.2xlarge',
                                                                                  'ml.r5d.4xlarge',
                                                                                  'ml.r5d.8xlarge',
                                                                                  'ml.r5d.large',
                                                                                  'ml.r5d.xlarge',
                                                                                  'ml.t3.2xlarge',
                                                                                  'ml.t3.large',
                                                                                  'ml.t3.medium',
                                                                                  'ml.t3.xlarge'}},
                                              'InstanceType': {'ml.r5.12xlarge',
                                                               'ml.r5.16xlarge',
                                                               'ml.r5.24xlarge',
                                                               'ml.r5.2xlarge',
                                                               'ml.r5.4xlarge',
                                                               'ml.r5.8xlarge',
                                                               'ml.r5.large',
                                                               'ml.r5.xlarge',
                                                               'ml.r5d.12xlarge',
                                                               'ml.r5d.16xlarge',
                                                               'ml.r5d.24xlarge',
                                                               'ml.r5d.2xlarge',
                                                               'ml.r5d.4xlarge',
                                                               'ml.r5d.8xlarge',
                                                               'ml.r5d.large',
                                                               'ml.r5d.xlarge',
                                                               'ml.t3.2xlarge',
                                                               'ml.t3.large',
                                                               'ml.t3.medium',
                                                               'ml.t3.xlarge'}}},
 'TrainingJobDefinitions': {'HyperParameterTuningResourceConfig': {'InstanceConfigs': {'InstanceType': {'ml.r5.12xlarge',
                                                                                                        'ml.r5.16xlarge',
                                                                                                        'ml.r5.24xlarge',
                                                                                                        'ml.r5.2xlarge',
                                                                                                        'ml.r5.4xlarge',
                                                                                                        'ml.r5.8xlarge',
                                                                                                        'ml.r5.large',
                                                                                                        'ml.r5.xlarge',
                                                                                                        'ml.r5d.12xlarge',
                                                                                                        'ml.r5d.16xlarge',
                                                                                                        'ml.r5d.24xlarge',
                                                                                                        'ml.r5d.2xlarge',
                                                                                                        'ml.r5d.4xlarge',
                                                                                                        'ml.r5d.8xlarge',
                                                                                                        'ml.r5d.large',
                                                                                                        'ml.r5d.xlarge',
                                                                                                        'ml.t3.2xlarge',
                                                                                                        'ml.t3.large',
                                                                                                        'ml.t3.medium',
                                                                                                        'ml.t3.xlarge'}},
                                                                   'InstanceType': {'ml.r5.12xlarge',
                                                                                    'ml.r5.16xlarge',
                                                                                    'ml.r5.24xlarge',
                                                                                    'ml.r5.2xlarge',
                                                                                    'ml.r5.4xlarge',
                                                                                    'ml.r5.8xlarge',
                                                                                    'ml.r5.large',
                                                                                    'ml.r5.xlarge',
                                                                                    'ml.r5d.12xlarge',
                                                                                    'ml.r5d.16xlarge',
                                                                                    'ml.r5d.24xlarge',
                                                                                    'ml.r5d.2xlarge',
                                                                                    'ml.r5d.4xlarge',
                                                                                    'ml.r5d.8xlarge',
                                                                                    'ml.r5d.large',
                                                                                    'ml.r5d.xlarge',
                                                                                    'ml.t3.2xlarge',
                                                                                    'ml.t3.large',
                                                                                    'ml.t3.medium',
                                                                                    'ml.t3.xlarge'}},
                            'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                                                   'ml.r5.16xlarge',
                                                                                   'ml.r5.24xlarge',
                                                                                   'ml.r5.2xlarge',
                                                                                   'ml.r5.4xlarge',
                                                                                   'ml.r5.8xlarge',
                                                                                   'ml.r5.large',
                                                                                   'ml.r5.xlarge',
                                                                                   'ml.r5d.12xlarge',
                                                                                   'ml.r5d.16xlarge',
                                                                                   'ml.r5d.24xlarge',
                                                                                   'ml.r5d.2xlarge',
                                                                                   'ml.r5d.4xlarge',
                                                                                   'ml.r5d.8xlarge',
                                                                                   'ml.r5d.large',
                                                                                   'ml.r5d.xlarge',
                                                                                   'ml.t3.2xlarge',
                                                                                   'ml.t3.large',
                                                                                   'ml.t3.medium',
                                                                                   'ml.t3.xlarge'}},
                                               'InstanceType': {'ml.r5.12xlarge',
                                                                'ml.r5.16xlarge',
                                                                'ml.r5.24xlarge',
                                                                'ml.r5.2xlarge',
                                                                'ml.r5.4xlarge',
                                                                'ml.r5.8xlarge',
                                                                'ml.r5.large',
                                                                'ml.r5.xlarge',
                                                                'ml.r5d.12xlarge',
                                                                'ml.r5d.16xlarge',
                                                                'ml.r5d.24xlarge',
                                                                'ml.r5d.2xlarge',
                                                                'ml.r5d.4xlarge',
                                                                'ml.r5d.8xlarge',
                                                                'ml.r5d.large',
                                                                'ml.r5d.xlarge',
                                                                'ml.t3.2xlarge',
                                                                'ml.t3.large',
                                                                'ml.t3.medium',
                                                                'ml.t3.xlarge'}}}}

Starts a hyperparameter tuning job. A hyperparameter tuning job finds the best version of a model by running many training jobs on your dataset using the algorithm you choose and values for hyperparameters within ranges that you specify. It then chooses the hyperparameter values that result in a model that performs the best, as measured by an objective metric that you choose.

A hyperparameter tuning job automatically creates Amazon SageMaker experiments, trials, and trial components for each training job that it runs. You can view these entities in Amazon SageMaker Studio. For more information, see View Experiments, Trials, and Trial Components.

Warning

Do not include any security-sensitive information including account access IDs, secrets or tokens in any hyperparameter field. If the use of security-sensitive credentials are detected, SageMaker will reject your training job request and return an exception error.

See also: AWS API Documentation

Request Syntax

client.create_hyper_parameter_tuning_job(
    HyperParameterTuningJobName='string',
    HyperParameterTuningJobConfig={
        'Strategy': 'Bayesian'|'Random'|'Hyperband'|'Grid',
        'StrategyConfig': {
            'HyperbandStrategyConfig': {
                'MinResource': 123,
                'MaxResource': 123
            }
        },
        'HyperParameterTuningJobObjective': {
            'Type': 'Maximize'|'Minimize',
            'MetricName': 'string'
        },
        'ResourceLimits': {
            'MaxNumberOfTrainingJobs': 123,
            'MaxParallelTrainingJobs': 123,
            'MaxRuntimeInSeconds': 123
        },
        'ParameterRanges': {
            'IntegerParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'ContinuousParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'CategoricalParameterRanges': [
                {
                    'Name': 'string',
                    'Values': [
                        'string',
                    ]
                },
            ],
            'AutoParameters': [
                {
                    'Name': 'string',
                    'ValueHint': 'string'
                },
            ]
        },
        'TrainingJobEarlyStoppingType': 'Off'|'Auto',
        'TuningJobCompletionCriteria': {
            'TargetObjectiveMetricValue': ...,
            'BestObjectiveNotImproving': {
                'MaxNumberOfTrainingJobsNotImproving': 123
            },
            'ConvergenceDetected': {
                'CompleteOnConvergence': 'Disabled'|'Enabled'
            }
        },
        'RandomSeed': 123
    },
    TrainingJobDefinition={
        'DefinitionName': 'string',
        'TuningObjective': {
            'Type': 'Maximize'|'Minimize',
            'MetricName': 'string'
        },
        'HyperParameterRanges': {
            'IntegerParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'ContinuousParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'CategoricalParameterRanges': [
                {
                    'Name': 'string',
                    'Values': [
                        'string',
                    ]
                },
            ],
            'AutoParameters': [
                {
                    'Name': 'string',
                    'ValueHint': 'string'
                },
            ]
        },
        'StaticHyperParameters': {
            'string': 'string'
        },
        'AlgorithmSpecification': {
            'TrainingImage': 'string',
            'TrainingInputMode': 'Pipe'|'File'|'FastFile',
            'AlgorithmName': 'string',
            'MetricDefinitions': [
                {
                    'Name': 'string',
                    'Regex': 'string'
                },
            ]
        },
        'RoleArn': 'string',
        'InputDataConfig': [
            {
                'ChannelName': 'string',
                'DataSource': {
                    'S3DataSource': {
                        'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                        'S3Uri': 'string',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'AttributeNames': [
                            'string',
                        ],
                        'InstanceGroupNames': [
                            'string',
                        ]
                    },
                    'FileSystemDataSource': {
                        'FileSystemId': 'string',
                        'FileSystemAccessMode': 'rw'|'ro',
                        'FileSystemType': 'EFS'|'FSxLustre',
                        'DirectoryPath': 'string'
                    }
                },
                'ContentType': 'string',
                'CompressionType': 'None'|'Gzip',
                'RecordWrapperType': 'None'|'RecordIO',
                'InputMode': 'Pipe'|'File'|'FastFile',
                'ShuffleConfig': {
                    'Seed': 123
                }
            },
        ],
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        },
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3OutputPath': 'string',
            'CompressionType': 'GZIP'|'NONE'
        },
        'ResourceConfig': {
            'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'InstanceCount': 123,
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string',
            'KeepAlivePeriodInSeconds': 123,
            'InstanceGroups': [
                {
                    'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'InstanceCount': 123,
                    'InstanceGroupName': 'string'
                },
            ]
        },
        'HyperParameterTuningResourceConfig': {
            'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'InstanceCount': 123,
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string',
            'AllocationStrategy': 'Prioritized',
            'InstanceConfigs': [
                {
                    'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'InstanceCount': 123,
                    'VolumeSizeInGB': 123
                },
            ]
        },
        'StoppingCondition': {
            'MaxRuntimeInSeconds': 123,
            'MaxWaitTimeInSeconds': 123,
            'MaxPendingTimeInSeconds': 123
        },
        'EnableNetworkIsolation': True|False,
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableManagedSpotTraining': True|False,
        'CheckpointConfig': {
            'S3Uri': 'string',
            'LocalPath': 'string'
        },
        'RetryStrategy': {
            'MaximumRetryAttempts': 123
        },
        'Environment': {
            'string': 'string'
        }
    },
    TrainingJobDefinitions=[
        {
            'DefinitionName': 'string',
            'TuningObjective': {
                'Type': 'Maximize'|'Minimize',
                'MetricName': 'string'
            },
            'HyperParameterRanges': {
                'IntegerParameterRanges': [
                    {
                        'Name': 'string',
                        'MinValue': 'string',
                        'MaxValue': 'string',
                        'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                    },
                ],
                'ContinuousParameterRanges': [
                    {
                        'Name': 'string',
                        'MinValue': 'string',
                        'MaxValue': 'string',
                        'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                    },
                ],
                'CategoricalParameterRanges': [
                    {
                        'Name': 'string',
                        'Values': [
                            'string',
                        ]
                    },
                ],
                'AutoParameters': [
                    {
                        'Name': 'string',
                        'ValueHint': 'string'
                    },
                ]
            },
            'StaticHyperParameters': {
                'string': 'string'
            },
            'AlgorithmSpecification': {
                'TrainingImage': 'string',
                'TrainingInputMode': 'Pipe'|'File'|'FastFile',
                'AlgorithmName': 'string',
                'MetricDefinitions': [
                    {
                        'Name': 'string',
                        'Regex': 'string'
                    },
                ]
            },
            'RoleArn': 'string',
            'InputDataConfig': [
                {
                    'ChannelName': 'string',
                    'DataSource': {
                        'S3DataSource': {
                            'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                            'S3Uri': 'string',
                            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                            'AttributeNames': [
                                'string',
                            ],
                            'InstanceGroupNames': [
                                'string',
                            ]
                        },
                        'FileSystemDataSource': {
                            'FileSystemId': 'string',
                            'FileSystemAccessMode': 'rw'|'ro',
                            'FileSystemType': 'EFS'|'FSxLustre',
                            'DirectoryPath': 'string'
                        }
                    },
                    'ContentType': 'string',
                    'CompressionType': 'None'|'Gzip',
                    'RecordWrapperType': 'None'|'RecordIO',
                    'InputMode': 'Pipe'|'File'|'FastFile',
                    'ShuffleConfig': {
                        'Seed': 123
                    }
                },
            ],
            'VpcConfig': {
                'SecurityGroupIds': [
                    'string',
                ],
                'Subnets': [
                    'string',
                ]
            },
            'OutputDataConfig': {
                'KmsKeyId': 'string',
                'S3OutputPath': 'string',
                'CompressionType': 'GZIP'|'NONE'
            },
            'ResourceConfig': {
                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                'InstanceCount': 123,
                'VolumeSizeInGB': 123,
                'VolumeKmsKeyId': 'string',
                'KeepAlivePeriodInSeconds': 123,
                'InstanceGroups': [
                    {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                        'InstanceCount': 123,
                        'InstanceGroupName': 'string'
                    },
                ]
            },
            'HyperParameterTuningResourceConfig': {
                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                'InstanceCount': 123,
                'VolumeSizeInGB': 123,
                'VolumeKmsKeyId': 'string',
                'AllocationStrategy': 'Prioritized',
                'InstanceConfigs': [
                    {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                        'InstanceCount': 123,
                        'VolumeSizeInGB': 123
                    },
                ]
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123,
                'MaxWaitTimeInSeconds': 123,
                'MaxPendingTimeInSeconds': 123
            },
            'EnableNetworkIsolation': True|False,
            'EnableInterContainerTrafficEncryption': True|False,
            'EnableManagedSpotTraining': True|False,
            'CheckpointConfig': {
                'S3Uri': 'string',
                'LocalPath': 'string'
            },
            'RetryStrategy': {
                'MaximumRetryAttempts': 123
            },
            'Environment': {
                'string': 'string'
            }
        },
    ],
    WarmStartConfig={
        'ParentHyperParameterTuningJobs': [
            {
                'HyperParameterTuningJobName': 'string'
            },
        ],
        'WarmStartType': 'IdenticalDataAndAlgorithm'|'TransferLearning'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    Autotune={
        'Mode': 'Enabled'
    }
)
type HyperParameterTuningJobName

string

param HyperParameterTuningJobName

[REQUIRED]

The name of the tuning job. This name is the prefix for the names of all training jobs that this tuning job launches. The name must be unique within the same Amazon Web Services account and Amazon Web Services Region. The name must have 1 to 32 characters. Valid characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case sensitive.

type HyperParameterTuningJobConfig

dict

param HyperParameterTuningJobConfig

[REQUIRED]

The HyperParameterTuningJobConfig object that describes the tuning job, including the search strategy, the objective metric used to evaluate training jobs, ranges of parameters to search, and resource limits for the tuning job. For more information, see How Hyperparameter Tuning Works.

  • Strategy (string) -- [REQUIRED]

    Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches. For information about search strategies, see How Hyperparameter Tuning Works.

  • StrategyConfig (dict) --

    The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig .

    • HyperbandStrategyConfig (dict) --

      The configuration for the object that specifies the Hyperband strategy. This parameter is only supported for the Hyperband selection for Strategy within the HyperParameterTuningJobConfig API.

      • MinResource (integer) --

        The minimum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter tuning job. If the value for MinResource has not been reached, the training job is not stopped by Hyperband .

      • MaxResource (integer) --

        The maximum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter tuning job. Once a job reaches the MaxResource value, it is stopped. If a value for MaxResource is not provided, and Hyperband is selected as the hyperparameter tuning strategy, HyperbandTraining attempts to infer MaxResource from the following keys (if present) in StaticsHyperParameters:

        • epochs

        • numepochs

        • n-epochs

        • n_epochs

        • num_epochs

        If HyperbandStrategyConfig is unable to infer a value for MaxResource , it generates a validation error. The maximum value is 20,000 epochs. All metrics that correspond to an objective metric are used to derive early stopping decisions. For distributed training jobs, ensure that duplicate metrics are not printed in the logs across the individual nodes in a training job. If multiple nodes are publishing duplicate or incorrect metrics, training jobs may make an incorrect stopping decision and stop the job prematurely.

  • HyperParameterTuningJobObjective (dict) --

    The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.

    • Type (string) -- [REQUIRED]

      Whether to minimize or maximize the objective metric.

    • MetricName (string) -- [REQUIRED]

      The name of the metric to use for the objective metric.

  • ResourceLimits (dict) -- [REQUIRED]

    The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.

    • MaxNumberOfTrainingJobs (integer) --

      The maximum number of training jobs that a hyperparameter tuning job can launch.

    • MaxParallelTrainingJobs (integer) -- [REQUIRED]

      The maximum number of concurrent training jobs that a hyperparameter tuning job can launch.

    • MaxRuntimeInSeconds (integer) --

      The maximum time in seconds that a hyperparameter tuning job can run.

  • ParameterRanges (dict) --

    The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.

    • IntegerParameterRanges (list) --

      The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

      • (dict) --

        For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

        • Name (string) -- [REQUIRED]

          The name of the hyperparameter to search.

        • MinValue (string) -- [REQUIRED]

          The minimum value of the hyperparameter to search.

        • MaxValue (string) -- [REQUIRED]

          The maximum value of the hyperparameter to search.

        • ScalingType (string) --

          The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

          Auto

          SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

          Linear

          Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

          Logarithmic

          Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

          Logarithmic scaling works only for ranges that have only values greater than 0.

    • ContinuousParameterRanges (list) --

      The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

      • (dict) --

        A list of continuous hyperparameters to tune.

        • Name (string) -- [REQUIRED]

          The name of the continuous hyperparameter to tune.

        • MinValue (string) -- [REQUIRED]

          The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValue for tuning.

        • MaxValue (string) -- [REQUIRED]

          The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

        • ScalingType (string) --

          The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

          Auto

          SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

          Linear

          Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

          Logarithmic

          Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

          Logarithmic scaling works only for ranges that have only values greater than 0.

          ReverseLogarithmic

          Hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.

          Reverse logarithmic scaling works only for ranges that are entirely within the range 0<=x<1.0.

    • CategoricalParameterRanges (list) --

      The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

      • (dict) --

        A list of categorical hyperparameters to tune.

        • Name (string) -- [REQUIRED]

          The name of the categorical hyperparameter to tune.

        • Values (list) -- [REQUIRED]

          A list of the categories for the hyperparameter.

          • (string) --

    • AutoParameters (list) --

      A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for your tuning job.

      • (dict) --

        The name and an example value of the hyperparameter that you want to use in Autotune. If Automatic model tuning (AMT) determines that your hyperparameter is eligible for Autotune, an optimal hyperparameter range is selected for you.

        • Name (string) -- [REQUIRED]

          The name of the hyperparameter to optimize using Autotune.

        • ValueHint (string) -- [REQUIRED]

          An example value of the hyperparameter to optimize using Autotune.

  • TrainingJobEarlyStoppingType (string) --

    Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband . This parameter can take on one of the following values (the default value is OFF ):

    OFF

    Training jobs launched by the hyperparameter tuning job do not use early stopping.

    AUTO

    SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

  • TuningJobCompletionCriteria (dict) --

    The tuning job's completion criteria.

    • TargetObjectiveMetricValue (float) --

      The value of the objective metric.

    • BestObjectiveNotImproving (dict) --

      A flag to stop your hyperparameter tuning job if model performance fails to improve as evaluated against an objective function.

      • MaxNumberOfTrainingJobsNotImproving (integer) --

        The number of training jobs that have failed to improve model performance by 1% or greater over prior training jobs as evaluated against an objective function.

    • ConvergenceDetected (dict) --

      A flag to top your hyperparameter tuning job if automatic model tuning (AMT) has detected that your model has converged as evaluated against your objective function.

      • CompleteOnConvergence (string) --

        A flag to stop a tuning job once AMT has detected that the job has converged.

  • RandomSeed (integer) --

    A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.

type TrainingJobDefinition

dict

param TrainingJobDefinition

The HyperParameterTrainingJobDefinition object that describes the training jobs that this tuning job launches, including static hyperparameters, input data configuration, output data configuration, resource configuration, and stopping condition.

  • DefinitionName (string) --

    The job definition name.

  • TuningObjective (dict) --

    Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter. If you want to define a custom objective metric, see Define metrics and environment variables.

    • Type (string) -- [REQUIRED]

      Whether to minimize or maximize the objective metric.

    • MetricName (string) -- [REQUIRED]

      The name of the metric to use for the objective metric.

  • HyperParameterRanges (dict) --

    Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.

    Note

    The maximum number of items specified for Array Members refers to the maximum number of hyperparameters for each range and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of hyperparameters for all the ranges can't exceed the maximum number specified.

    • IntegerParameterRanges (list) --

      The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

      • (dict) --

        For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

        • Name (string) -- [REQUIRED]

          The name of the hyperparameter to search.

        • MinValue (string) -- [REQUIRED]

          The minimum value of the hyperparameter to search.

        • MaxValue (string) -- [REQUIRED]

          The maximum value of the hyperparameter to search.

        • ScalingType (string) --

          The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

          Auto

          SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

          Linear

          Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

          Logarithmic

          Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

          Logarithmic scaling works only for ranges that have only values greater than 0.

    • ContinuousParameterRanges (list) --

      The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

      • (dict) --

        A list of continuous hyperparameters to tune.

        • Name (string) -- [REQUIRED]

          The name of the continuous hyperparameter to tune.

        • MinValue (string) -- [REQUIRED]

          The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValue for tuning.

        • MaxValue (string) -- [REQUIRED]

          The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

        • ScalingType (string) --

          The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

          Auto

          SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

          Linear

          Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

          Logarithmic

          Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

          Logarithmic scaling works only for ranges that have only values greater than 0.

          ReverseLogarithmic

          Hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.

          Reverse logarithmic scaling works only for ranges that are entirely within the range 0<=x<1.0.

    • CategoricalParameterRanges (list) --

      The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

      • (dict) --

        A list of categorical hyperparameters to tune.

        • Name (string) -- [REQUIRED]

          The name of the categorical hyperparameter to tune.

        • Values (list) -- [REQUIRED]

          A list of the categories for the hyperparameter.

          • (string) --

    • AutoParameters (list) --

      A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for your tuning job.

      • (dict) --

        The name and an example value of the hyperparameter that you want to use in Autotune. If Automatic model tuning (AMT) determines that your hyperparameter is eligible for Autotune, an optimal hyperparameter range is selected for you.

        • Name (string) -- [REQUIRED]

          The name of the hyperparameter to optimize using Autotune.

        • ValueHint (string) -- [REQUIRED]

          An example value of the hyperparameter to optimize using Autotune.

  • StaticHyperParameters (dict) --

    Specifies the values of hyperparameters that do not change for the tuning job.

    • (string) --

      • (string) --

  • AlgorithmSpecification (dict) -- [REQUIRED]

    The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

    • TrainingImage (string) --

      The registry path of the Docker image that contains the training algorithm. For information about Docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

    • TrainingInputMode (string) -- [REQUIRED]

      The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

      Pipe mode

      If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

      File mode

      If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

      You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

      For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

      FastFile mode

      If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

      FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

    • AlgorithmName (string) --

      The name of the resource algorithm to use for the hyperparameter tuning job. If you specify a value for this parameter, do not specify a value for TrainingImage .

    • MetricDefinitions (list) --

      An array of MetricDefinition objects that specify the metrics that the algorithm emits.

      • (dict) --

        Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

        • Name (string) -- [REQUIRED]

          The name of the metric.

        • Regex (string) -- [REQUIRED]

          A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

  • RoleArn (string) -- [REQUIRED]

    The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

  • InputDataConfig (list) --

    An array of Channel objects that specify the input for the training jobs that the tuning job launches.

    • (dict) --

      A channel is a named input source that training algorithms can consume.

      • ChannelName (string) -- [REQUIRED]

        The name of the channel.

      • DataSource (dict) -- [REQUIRED]

        The location of the channel data.

        • S3DataSource (dict) --

          The S3 location of the data source that is associated with a channel.

          • S3DataType (string) -- [REQUIRED]

            If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

            If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

            If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

          • S3Uri (string) -- [REQUIRED]

            Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

            • A key name prefix might look like this: s3://bucketname/exampleprefix/

            • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

            Your input bucket must be located in same Amazon Web Services region as your training job.

          • S3DataDistributionType (string) --

            If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

            If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

            Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

            In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

          • AttributeNames (list) --

            A list of one or more attribute names to use that are found in a specified augmented manifest file.

            • (string) --

          • InstanceGroupNames (list) --

            A list of names of instance groups that get data from the S3 data source.

            • (string) --

        • FileSystemDataSource (dict) --

          The file system that is associated with a channel.

          • FileSystemId (string) -- [REQUIRED]

            The file system id.

          • FileSystemAccessMode (string) -- [REQUIRED]

            The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

          • FileSystemType (string) -- [REQUIRED]

            The file system type.

          • DirectoryPath (string) -- [REQUIRED]

            The full path to the directory to associate with the channel.

      • ContentType (string) --

        The MIME type of the data.

      • CompressionType (string) --

        If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

      • RecordWrapperType (string) --

        Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

        In File mode, leave this field unset or set it to None.

      • InputMode (string) --

        (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

        To use a model for incremental training, choose File input model.

      • ShuffleConfig (dict) --

        A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

        For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

        • Seed (integer) -- [REQUIRED]

          Determines the shuffling order in ShuffleConfig value.

  • VpcConfig (dict) --

    The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

      • (string) --

  • OutputDataConfig (dict) -- [REQUIRED]

    Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

    • KmsKeyId (string) --

      The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

      • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

      • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

      • // KMS Key Alias "alias/ExampleAlias"

      • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

      If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

      The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

    • S3OutputPath (string) -- [REQUIRED]

      Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

    • CompressionType (string) --

      The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

  • ResourceConfig (dict) --

    The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

    Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

    Note

    If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

    • InstanceType (string) --

      The ML compute instance type.

      Note

      SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

      Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

      • US East (N. Virginia) (us-east-1)

      • US West (Oregon) (us-west-2)

      To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

    • InstanceCount (integer) --

      The number of ML compute instances to use. For distributed training, provide a value greater than 1.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume that you want to provision.

      ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

      When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

      When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

      To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

      To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

    • VolumeKmsKeyId (string) --

      The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

      Note

      Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

      For a list of instance types that support local instance storage, see Instance Store Volumes.

      For more information about local instance storage encryption, see SSD Instance Store Volumes.

      The VolumeKmsKeyId can be in any of the following formats:

      • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

      • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

    • KeepAlivePeriodInSeconds (integer) --

      The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

    • InstanceGroups (list) --

      The configuration of a heterogeneous cluster in JSON format.

      • (dict) --

        Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

        • InstanceType (string) -- [REQUIRED]

          Specifies the instance type of the instance group.

        • InstanceCount (integer) -- [REQUIRED]

          Specifies the number of instances of the instance group.

        • InstanceGroupName (string) -- [REQUIRED]

          Specifies the name of the instance group.

  • HyperParameterTuningResourceConfig (dict) --

    The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

    • InstanceType (string) --

      The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance types for more information.

    • InstanceCount (integer) --

      The number of compute instances of type InstanceType to use. For distributed training, select a value greater than 1.

    • VolumeSizeInGB (integer) --

      The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs (optional). These volumes store model artifacts, incremental states and optionally, scratch space for training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is also specified.

      Some instance types have a fixed total local storage size. If you select one of these instances for training, VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local instance storage and their sizes, see instance store volumes.

      Note

      SageMaker supports only the General Purpose SSD (gp2) storage volume type.

    • VolumeKmsKeyId (string) --

      A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.

      KMS Key ID:

      "1234abcd-12ab-34cd-56ef-1234567890ab"

      Amazon Resource Name (ARN) of a KMS key:

      "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

      Some instances use local storage, which use a hardware module to encrypt storage volumes. If you choose one of these instance types, you cannot request a VolumeKmsKeyId . For a list of instance types that use local storage, see instance store volumes. For more information about Amazon Web Services Key Management Service, see KMS encryption for more information.

    • AllocationStrategy (string) --

      The strategy that determines the order of preference for resources specified in InstanceConfigs used in hyperparameter optimization.

    • InstanceConfigs (list) --

      A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These resources include compute instances and storage volumes to use in model training jobs launched by hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple configurations provided in InstanceConfigs are used.

      Note

      If you only want to use a single instance configuration inside the HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs . Instead, use InstanceType , VolumeSizeInGB and InstanceCount . If you use InstanceConfigs , do not provide values for InstanceType , VolumeSizeInGB or InstanceCount .

      • (dict) --

        The configuration for hyperparameter tuning resources for use in training jobs launched by the tuning job. These resources include compute instances and storage volumes. Specify one or more compute instance configurations and allocation strategies to select resources (optional).

        • InstanceType (string) -- [REQUIRED]

          The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.

        • InstanceCount (integer) -- [REQUIRED]

          The number of instances of the type specified by InstanceType . Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.

        • VolumeSizeInGB (integer) -- [REQUIRED]

          The volume size in GB of the data to be processed for hyperparameter optimization (optional).

  • StoppingCondition (dict) -- [REQUIRED]

    Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

    • MaxRuntimeInSeconds (integer) --

      The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

      For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

      For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

      The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

    • MaxWaitTimeInSeconds (integer) --

      The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

      When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

    • MaxPendingTimeInSeconds (integer) --

      The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

  • EnableNetworkIsolation (boolean) --

    Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

  • EnableInterContainerTrafficEncryption (boolean) --

    To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

  • EnableManagedSpotTraining (boolean) --

    A Boolean indicating whether managed spot training is enabled ( True ) or not ( False ).

  • CheckpointConfig (dict) --

    Contains information about the output location for managed spot training checkpoint data.

    • S3Uri (string) -- [REQUIRED]

      Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

    • LocalPath (string) --

      (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

  • RetryStrategy (dict) --

    The number of times to retry the job when the job fails due to an InternalServerError .

    • MaximumRetryAttempts (integer) -- [REQUIRED]

      The number of times to retry the job. When the job is retried, it's SecondaryStatus is changed to STARTING .

  • Environment (dict) --

    An environment variable that you can pass into the SageMaker CreateTrainingJob API. You can use an existing environment variable from the training container or use your own. See Define metrics and variables for more information.

    Note

    The maximum number of items specified for Map Entries refers to the maximum number of environment variables for each TrainingJobDefinition and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of environment variables for all the training job definitions can't exceed the maximum number specified.

    • (string) --

      • (string) --

type TrainingJobDefinitions

list

param TrainingJobDefinitions

A list of the HyperParameterTrainingJobDefinition objects launched for this tuning job.

  • (dict) --

    Defines the training jobs launched by a hyperparameter tuning job.

    • DefinitionName (string) --

      The job definition name.

    • TuningObjective (dict) --

      Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter. If you want to define a custom objective metric, see Define metrics and environment variables.

      • Type (string) -- [REQUIRED]

        Whether to minimize or maximize the objective metric.

      • MetricName (string) -- [REQUIRED]

        The name of the metric to use for the objective metric.

    • HyperParameterRanges (dict) --

      Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.

      Note

      The maximum number of items specified for Array Members refers to the maximum number of hyperparameters for each range and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of hyperparameters for all the ranges can't exceed the maximum number specified.

      • IntegerParameterRanges (list) --

        The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

        • (dict) --

          For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

          • Name (string) -- [REQUIRED]

            The name of the hyperparameter to search.

          • MinValue (string) -- [REQUIRED]

            The minimum value of the hyperparameter to search.

          • MaxValue (string) -- [REQUIRED]

            The maximum value of the hyperparameter to search.

          • ScalingType (string) --

            The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

            Auto

            SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

            Linear

            Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

            Logarithmic

            Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

            Logarithmic scaling works only for ranges that have only values greater than 0.

      • ContinuousParameterRanges (list) --

        The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

        • (dict) --

          A list of continuous hyperparameters to tune.

          • Name (string) -- [REQUIRED]

            The name of the continuous hyperparameter to tune.

          • MinValue (string) -- [REQUIRED]

            The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValue for tuning.

          • MaxValue (string) -- [REQUIRED]

            The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

          • ScalingType (string) --

            The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

            Auto

            SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

            Linear

            Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

            Logarithmic

            Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

            Logarithmic scaling works only for ranges that have only values greater than 0.

            ReverseLogarithmic

            Hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.

            Reverse logarithmic scaling works only for ranges that are entirely within the range 0<=x<1.0.

      • CategoricalParameterRanges (list) --

        The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

        • (dict) --

          A list of categorical hyperparameters to tune.

          • Name (string) -- [REQUIRED]

            The name of the categorical hyperparameter to tune.

          • Values (list) -- [REQUIRED]

            A list of the categories for the hyperparameter.

            • (string) --

      • AutoParameters (list) --

        A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for your tuning job.

        • (dict) --

          The name and an example value of the hyperparameter that you want to use in Autotune. If Automatic model tuning (AMT) determines that your hyperparameter is eligible for Autotune, an optimal hyperparameter range is selected for you.

          • Name (string) -- [REQUIRED]

            The name of the hyperparameter to optimize using Autotune.

          • ValueHint (string) -- [REQUIRED]

            An example value of the hyperparameter to optimize using Autotune.

    • StaticHyperParameters (dict) --

      Specifies the values of hyperparameters that do not change for the tuning job.

      • (string) --

        • (string) --

    • AlgorithmSpecification (dict) -- [REQUIRED]

      The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

      • TrainingImage (string) --

        The registry path of the Docker image that contains the training algorithm. For information about Docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

      • TrainingInputMode (string) -- [REQUIRED]

        The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

        Pipe mode

        If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

        File mode

        If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

        You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

        For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

        FastFile mode

        If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

        FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

      • AlgorithmName (string) --

        The name of the resource algorithm to use for the hyperparameter tuning job. If you specify a value for this parameter, do not specify a value for TrainingImage .

      • MetricDefinitions (list) --

        An array of MetricDefinition objects that specify the metrics that the algorithm emits.

        • (dict) --

          Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

          • Name (string) -- [REQUIRED]

            The name of the metric.

          • Regex (string) -- [REQUIRED]

            A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

    • RoleArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

    • InputDataConfig (list) --

      An array of Channel objects that specify the input for the training jobs that the tuning job launches.

      • (dict) --

        A channel is a named input source that training algorithms can consume.

        • ChannelName (string) -- [REQUIRED]

          The name of the channel.

        • DataSource (dict) -- [REQUIRED]

          The location of the channel data.

          • S3DataSource (dict) --

            The S3 location of the data source that is associated with a channel.

            • S3DataType (string) -- [REQUIRED]

              If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

              If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

              If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

            • S3Uri (string) -- [REQUIRED]

              Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

              • A key name prefix might look like this: s3://bucketname/exampleprefix/

              • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

              Your input bucket must be located in same Amazon Web Services region as your training job.

            • S3DataDistributionType (string) --

              If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

              If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

              Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

              In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

            • AttributeNames (list) --

              A list of one or more attribute names to use that are found in a specified augmented manifest file.

              • (string) --

            • InstanceGroupNames (list) --

              A list of names of instance groups that get data from the S3 data source.

              • (string) --

          • FileSystemDataSource (dict) --

            The file system that is associated with a channel.

            • FileSystemId (string) -- [REQUIRED]

              The file system id.

            • FileSystemAccessMode (string) -- [REQUIRED]

              The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

            • FileSystemType (string) -- [REQUIRED]

              The file system type.

            • DirectoryPath (string) -- [REQUIRED]

              The full path to the directory to associate with the channel.

        • ContentType (string) --

          The MIME type of the data.

        • CompressionType (string) --

          If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

        • RecordWrapperType (string) --

          Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

          In File mode, leave this field unset or set it to None.

        • InputMode (string) --

          (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

          To use a model for incremental training, choose File input model.

        • ShuffleConfig (dict) --

          A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

          For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

          • Seed (integer) -- [REQUIRED]

            Determines the shuffling order in ShuffleConfig value.

    • VpcConfig (dict) --

      The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

      • SecurityGroupIds (list) -- [REQUIRED]

        The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

        • (string) --

      • Subnets (list) -- [REQUIRED]

        The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

        • (string) --

    • OutputDataConfig (dict) -- [REQUIRED]

      Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

      • KmsKeyId (string) --

        The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

        • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

        • // KMS Key Alias "alias/ExampleAlias"

        • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

        If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

        The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

      • S3OutputPath (string) -- [REQUIRED]

        Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

      • CompressionType (string) --

        The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

    • ResourceConfig (dict) --

      The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

      Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

      Note

      If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

      • InstanceType (string) --

        The ML compute instance type.

        Note

        SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

        Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

        • US East (N. Virginia) (us-east-1)

        • US West (Oregon) (us-west-2)

        To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

      • InstanceCount (integer) --

        The number of ML compute instances to use. For distributed training, provide a value greater than 1.

      • VolumeSizeInGB (integer) -- [REQUIRED]

        The size of the ML storage volume that you want to provision.

        ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

        When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

        When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

        To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

        To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

      • VolumeKmsKeyId (string) --

        The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

        Note

        Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

        For a list of instance types that support local instance storage, see Instance Store Volumes.

        For more information about local instance storage encryption, see SSD Instance Store Volumes.

        The VolumeKmsKeyId can be in any of the following formats:

        • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

      • KeepAlivePeriodInSeconds (integer) --

        The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

      • InstanceGroups (list) --

        The configuration of a heterogeneous cluster in JSON format.

        • (dict) --

          Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

          • InstanceType (string) -- [REQUIRED]

            Specifies the instance type of the instance group.

          • InstanceCount (integer) -- [REQUIRED]

            Specifies the number of instances of the instance group.

          • InstanceGroupName (string) -- [REQUIRED]

            Specifies the name of the instance group.

    • HyperParameterTuningResourceConfig (dict) --

      The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

      • InstanceType (string) --

        The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance types for more information.

      • InstanceCount (integer) --

        The number of compute instances of type InstanceType to use. For distributed training, select a value greater than 1.

      • VolumeSizeInGB (integer) --

        The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs (optional). These volumes store model artifacts, incremental states and optionally, scratch space for training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is also specified.

        Some instance types have a fixed total local storage size. If you select one of these instances for training, VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local instance storage and their sizes, see instance store volumes.

        Note

        SageMaker supports only the General Purpose SSD (gp2) storage volume type.

      • VolumeKmsKeyId (string) --

        A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.

        KMS Key ID:

        "1234abcd-12ab-34cd-56ef-1234567890ab"

        Amazon Resource Name (ARN) of a KMS key:

        "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

        Some instances use local storage, which use a hardware module to encrypt storage volumes. If you choose one of these instance types, you cannot request a VolumeKmsKeyId . For a list of instance types that use local storage, see instance store volumes. For more information about Amazon Web Services Key Management Service, see KMS encryption for more information.

      • AllocationStrategy (string) --

        The strategy that determines the order of preference for resources specified in InstanceConfigs used in hyperparameter optimization.

      • InstanceConfigs (list) --

        A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These resources include compute instances and storage volumes to use in model training jobs launched by hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple configurations provided in InstanceConfigs are used.

        Note

        If you only want to use a single instance configuration inside the HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs . Instead, use InstanceType , VolumeSizeInGB and InstanceCount . If you use InstanceConfigs , do not provide values for InstanceType , VolumeSizeInGB or InstanceCount .

        • (dict) --

          The configuration for hyperparameter tuning resources for use in training jobs launched by the tuning job. These resources include compute instances and storage volumes. Specify one or more compute instance configurations and allocation strategies to select resources (optional).

          • InstanceType (string) -- [REQUIRED]

            The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.

          • InstanceCount (integer) -- [REQUIRED]

            The number of instances of the type specified by InstanceType . Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.

          • VolumeSizeInGB (integer) -- [REQUIRED]

            The volume size in GB of the data to be processed for hyperparameter optimization (optional).

    • StoppingCondition (dict) -- [REQUIRED]

      Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

      • MaxRuntimeInSeconds (integer) --

        The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

        For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

        For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

        The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

      • MaxWaitTimeInSeconds (integer) --

        The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

        When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

      • MaxPendingTimeInSeconds (integer) --

        The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

    • EnableNetworkIsolation (boolean) --

      Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

    • EnableInterContainerTrafficEncryption (boolean) --

      To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

    • EnableManagedSpotTraining (boolean) --

      A Boolean indicating whether managed spot training is enabled ( True ) or not ( False ).

    • CheckpointConfig (dict) --

      Contains information about the output location for managed spot training checkpoint data.

      • S3Uri (string) -- [REQUIRED]

        Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

      • LocalPath (string) --

        (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

    • RetryStrategy (dict) --

      The number of times to retry the job when the job fails due to an InternalServerError .

      • MaximumRetryAttempts (integer) -- [REQUIRED]

        The number of times to retry the job. When the job is retried, it's SecondaryStatus is changed to STARTING .

    • Environment (dict) --

      An environment variable that you can pass into the SageMaker CreateTrainingJob API. You can use an existing environment variable from the training container or use your own. See Define metrics and variables for more information.

      Note

      The maximum number of items specified for Map Entries refers to the maximum number of environment variables for each TrainingJobDefinition and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of environment variables for all the training job definitions can't exceed the maximum number specified.

      • (string) --

        • (string) --

type WarmStartConfig

dict

param WarmStartConfig

Specifies the configuration for starting the hyperparameter tuning job using one or more previous tuning jobs as a starting point. The results of previous tuning jobs are used to inform which combinations of hyperparameters to search over in the new tuning job.

All training jobs launched by the new hyperparameter tuning job are evaluated by using the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM as the WarmStartType value for the warm start configuration, the training job that performs the best in the new tuning job is compared to the best training jobs from the parent tuning jobs. From these, the training job that performs the best as measured by the objective metric is returned as the overall best training job.

Note

All training jobs launched by parent hyperparameter tuning jobs and the new hyperparameter tuning jobs count against the limit of training jobs for the tuning job.

  • ParentHyperParameterTuningJobs (list) -- [REQUIRED]

    An array of hyperparameter tuning jobs that are used as the starting point for the new hyperparameter tuning job. For more information about warm starting a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job as a Starting Point.

    Hyperparameter tuning jobs created before October 1, 2018 cannot be used as parent jobs for warm start tuning jobs.

    • (dict) --

      A previously completed or stopped hyperparameter tuning job to be used as a starting point for a new hyperparameter tuning job.

      • HyperParameterTuningJobName (string) --

        The name of the hyperparameter tuning job to be used as a starting point for a new hyperparameter tuning job.

  • WarmStartType (string) -- [REQUIRED]

    Specifies one of the following:

    IDENTICAL_DATA_AND_ALGORITHM

    The new hyperparameter tuning job uses the same input data and training image as the parent tuning jobs. You can change the hyperparameter ranges to search and the maximum number of training jobs that the hyperparameter tuning job launches. You cannot use a new version of the training algorithm, unless the changes in the new version do not affect the algorithm itself. For example, changes that improve logging or adding support for a different data format are allowed. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

    TRANSFER_LEARNING

    The new hyperparameter tuning job can include input data, hyperparameter ranges, maximum number of concurrent training jobs, and maximum number of training jobs that are different than those of its parent hyperparameter tuning jobs. The training image can also be a different version from the version used in the parent hyperparameter tuning job. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

type Tags

list

param Tags

An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

Tags that you specify for the tuning job are also added to all training jobs that the tuning job launches.

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

type Autotune

dict

param Autotune

Configures SageMaker Automatic model tuning (AMT) to automatically find optimal parameters for the following fields:

  • ParameterRanges: The names and ranges of parameters that a hyperparameter tuning job can optimize.

  • ResourceLimits: The maximum resources that can be used for a training job. These resources include the maximum number of training jobs, the maximum runtime of a tuning job, and the maximum number of training jobs to run at the same time.

  • TrainingJobEarlyStoppingType: A flag that specifies whether or not to use early stopping for training jobs launched by a hyperparameter tuning job.

  • RetryStrategy: The number of times to retry a training job.

  • Strategy: Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training jobs that it launches.

  • ConvergenceDetected: A flag to indicate that Automatic model tuning (AMT) has detected model convergence.

  • Mode (string) -- [REQUIRED]

    Set Mode to Enabled if you want to use Autotune.

rtype

dict

returns

Response Syntax

{
    'HyperParameterTuningJobArn': 'string'
}

Response Structure

  • (dict) --

    • HyperParameterTuningJobArn (string) --

      The Amazon Resource Name (ARN) of the tuning job. SageMaker assigns an ARN to a hyperparameter tuning job when you create it.

CreateModelBiasJobDefinition (updated) Link ¶
Changes (request)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Creates the definition for a model bias job.

See also: AWS API Documentation

Request Syntax

client.create_model_bias_job_definition(
    JobDefinitionName='string',
    ModelBiasBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    ModelBiasAppSpecification={
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    ModelBiasJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}

            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    ModelBiasJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the bias job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

type ModelBiasBaselineConfig

dict

param ModelBiasBaselineConfig

The baseline configuration for a model bias job.

  • BaseliningJobName (string) --

    The name of the baseline model bias job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

type ModelBiasAppSpecification

dict

param ModelBiasAppSpecification

[REQUIRED]

Configures the model bias job to run a specified Docker container image.

  • ImageUri (string) -- [REQUIRED]

    The container image to be run by the model bias job.

  • ConfigUri (string) -- [REQUIRED]

    JSON formatted S3 file that defines bias parameters. For more information on this JSON configuration file, see Configure bias parameters.

  • Environment (dict) --

    Sets the environment variables in the Docker container.

    • (string) --

      • (string) --

type ModelBiasJobInput

dict

param ModelBiasJobInput

[REQUIRED]

Inputs for the model bias job.

  • EndpointInput (dict) --

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

  • BatchTransformInput (dict) --

    Input object for the batch transform job.

    • DataCapturedDestinationS3Uri (string) -- [REQUIRED]

      The Amazon S3 location being used to capture the data.

    • DatasetFormat (dict) -- [REQUIRED]

      The dataset format for your batch transform job.

      • Csv (dict) --

        The CSV dataset used in the monitoring job.

        • Header (boolean) --

          Indicates if the CSV data has a header.

      • Json (dict) --

        The JSON dataset used in the monitoring job

        • Line (boolean) --

          Indicates if the file should be read as a JSON object per line.

      • Parquet (dict) --

        The Parquet dataset used in the monitoring job

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the batch transform data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

  • GroundTruthS3Input (dict) -- [REQUIRED]

    Location of ground truth labels to use in model bias job.

    • S3Uri (string) --

      The address of the Amazon S3 location of the ground truth labels.

type ModelBiasJobOutputConfig

dict

param ModelBiasJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Networking options for a model bias job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

type StoppingCondition

dict

param StoppingCondition

A time limit for how long the monitoring job is allowed to run before stopping.

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

    Note

    The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide .

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model bias job.

CreateModelExplainabilityJobDefinition (updated) Link ¶
Changes (request)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Creates the definition for a model explainability job.

See also: AWS API Documentation

Request Syntax

client.create_model_explainability_job_definition(
    JobDefinitionName='string',
    ModelExplainabilityBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    ModelExplainabilityAppSpecification={
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    ModelExplainabilityJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}

            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        }
    },
    ModelExplainabilityJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model explainability job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

type ModelExplainabilityBaselineConfig

dict

param ModelExplainabilityBaselineConfig

The baseline configuration for a model explainability job.

  • BaseliningJobName (string) --

    The name of the baseline model explainability job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

type ModelExplainabilityAppSpecification

dict

param ModelExplainabilityAppSpecification

[REQUIRED]

Configures the model explainability job to run a specified Docker container image.

  • ImageUri (string) -- [REQUIRED]

    The container image to be run by the model explainability job.

  • ConfigUri (string) -- [REQUIRED]

    JSON formatted Amazon S3 file that defines explainability parameters. For more information on this JSON configuration file, see Configure model explainability parameters.

  • Environment (dict) --

    Sets the environment variables in the Docker container.

    • (string) --

      • (string) --

type ModelExplainabilityJobInput

dict

param ModelExplainabilityJobInput

[REQUIRED]

Inputs for the model explainability job.

  • EndpointInput (dict) --

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

  • BatchTransformInput (dict) --

    Input object for the batch transform job.

    • DataCapturedDestinationS3Uri (string) -- [REQUIRED]

      The Amazon S3 location being used to capture the data.

    • DatasetFormat (dict) -- [REQUIRED]

      The dataset format for your batch transform job.

      • Csv (dict) --

        The CSV dataset used in the monitoring job.

        • Header (boolean) --

          Indicates if the CSV data has a header.

      • Json (dict) --

        The JSON dataset used in the monitoring job

        • Line (boolean) --

          Indicates if the file should be read as a JSON object per line.

      • Parquet (dict) --

        The Parquet dataset used in the monitoring job

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the batch transform data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

type ModelExplainabilityJobOutputConfig

dict

param ModelExplainabilityJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Networking options for a model explainability job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

type StoppingCondition

dict

param StoppingCondition

A time limit for how long the monitoring job is allowed to run before stopping.

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

    Note

    The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide .

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model explainability job.

CreateModelQualityJobDefinition (updated) Link ¶
Changes (request)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Creates a definition for a job that monitors model quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor.

See also: AWS API Documentation

Request Syntax

client.create_model_quality_job_definition(
    JobDefinitionName='string',
    ModelQualityBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    ModelQualityAppSpecification={
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'ProblemType': 'BinaryClassification'|'MulticlassClassification'|'Regression',
        'Environment': {
            'string': 'string'
        }
    },
    ModelQualityJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}

            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    ModelQualityJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the monitoring job definition.

type ModelQualityBaselineConfig

dict

param ModelQualityBaselineConfig

Specifies the constraints and baselines for the monitoring job.

  • BaseliningJobName (string) --

    The name of the job that performs baselining for the monitoring job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

type ModelQualityAppSpecification

dict

param ModelQualityAppSpecification

[REQUIRED]

The container that runs the monitoring job.

  • ImageUri (string) -- [REQUIRED]

    The address of the container image that the monitoring job runs.

  • ContainerEntrypoint (list) --

    Specifies the entrypoint for a container that the monitoring job runs.

    • (string) --

  • ContainerArguments (list) --

    An array of arguments for the container used to run the monitoring job.

    • (string) --

  • RecordPreprocessorSourceUri (string) --

    An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

  • PostAnalyticsProcessorSourceUri (string) --

    An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

  • ProblemType (string) --

    The machine learning problem type of the model that the monitoring job monitors.

  • Environment (dict) --

    Sets the environment variables in the container that the monitoring job runs.

    • (string) --

      • (string) --

type ModelQualityJobInput

dict

param ModelQualityJobInput

[REQUIRED]

A list of the inputs that are monitored. Currently endpoints are supported.

  • EndpointInput (dict) --

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

  • BatchTransformInput (dict) --

    Input object for the batch transform job.

    • DataCapturedDestinationS3Uri (string) -- [REQUIRED]

      The Amazon S3 location being used to capture the data.

    • DatasetFormat (dict) -- [REQUIRED]

      The dataset format for your batch transform job.

      • Csv (dict) --

        The CSV dataset used in the monitoring job.

        • Header (boolean) --

          Indicates if the CSV data has a header.

      • Json (dict) --

        The JSON dataset used in the monitoring job

        • Line (boolean) --

          Indicates if the file should be read as a JSON object per line.

      • Parquet (dict) --

        The Parquet dataset used in the monitoring job

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the batch transform data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • EndTimeOffset (string) --

      If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

    • ExcludeFeaturesAttribute (string) --

      The attributes of the input data to exclude from the analysis.

  • GroundTruthS3Input (dict) -- [REQUIRED]

    The ground truth label provided for the model.

    • S3Uri (string) --

      The address of the Amazon S3 location of the ground truth labels.

type ModelQualityJobOutputConfig

dict

param ModelQualityJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Specifies the network configuration for the monitoring job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

type StoppingCondition

dict

param StoppingCondition

A time limit for how long the monitoring job is allowed to run before stopping.

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

    Note

    The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide .

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model quality monitoring job.

CreateMonitoringSchedule (updated) Link ¶
Changes (request)
{'MonitoringScheduleConfig': {'MonitoringJobDefinition': {'MonitoringResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                                                                                     'ml.g5.16xlarge',
                                                                                                                     'ml.g5.24xlarge',
                                                                                                                     'ml.g5.2xlarge',
                                                                                                                     'ml.g5.48xlarge',
                                                                                                                     'ml.g5.4xlarge',
                                                                                                                     'ml.g5.8xlarge',
                                                                                                                     'ml.g5.xlarge',
                                                                                                                     'ml.r5d.12xlarge',
                                                                                                                     'ml.r5d.16xlarge',
                                                                                                                     'ml.r5d.24xlarge',
                                                                                                                     'ml.r5d.2xlarge',
                                                                                                                     'ml.r5d.4xlarge',
                                                                                                                     'ml.r5d.8xlarge',
                                                                                                                     'ml.r5d.large',
                                                                                                                     'ml.r5d.xlarge'}}}}}}

Creates a schedule that regularly starts Amazon SageMaker Processing Jobs to monitor the data captured for an Amazon SageMaker Endpoint.

See also: AWS API Documentation

Request Syntax

client.create_monitoring_schedule(
    MonitoringScheduleName='string',
    MonitoringScheduleConfig={
        'ScheduleConfig': {
            'ScheduleExpression': 'string',
            'DataAnalysisStartTime': 'string',
            'DataAnalysisEndTime': 'string'
        },
        'MonitoringJobDefinition': {
            'BaselineConfig': {
                'BaseliningJobName': 'string',
                'ConstraintsResource': {
                    'S3Uri': 'string'
                },
                'StatisticsResource': {
                    'S3Uri': 'string'
                }
            },
            'MonitoringInputs': [
                {
                    'EndpointInput': {
                        'EndpointName': 'string',
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string',
                        'ExcludeFeaturesAttribute': 'string'
                    },
                    'BatchTransformInput': {
                        'DataCapturedDestinationS3Uri': 'string',
                        'DatasetFormat': {
                            'Csv': {
                                'Header': True|False
                            },
                            'Json': {
                                'Line': True|False
                            },
                            'Parquet': {}

                        },
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string',
                        'ExcludeFeaturesAttribute': 'string'
                    }
                },
            ],
            'MonitoringOutputConfig': {
                'MonitoringOutputs': [
                    {
                        'S3Output': {
                            'S3Uri': 'string',
                            'LocalPath': 'string',
                            'S3UploadMode': 'Continuous'|'EndOfJob'
                        }
                    },
                ],
                'KmsKeyId': 'string'
            },
            'MonitoringResources': {
                'ClusterConfig': {
                    'InstanceCount': 123,
                    'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
                    'VolumeSizeInGB': 123,
                    'VolumeKmsKeyId': 'string'
                }
            },
            'MonitoringAppSpecification': {
                'ImageUri': 'string',
                'ContainerEntrypoint': [
                    'string',
                ],
                'ContainerArguments': [
                    'string',
                ],
                'RecordPreprocessorSourceUri': 'string',
                'PostAnalyticsProcessorSourceUri': 'string'
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123
            },
            'Environment': {
                'string': 'string'
            },
            'NetworkConfig': {
                'EnableInterContainerTrafficEncryption': True|False,
                'EnableNetworkIsolation': True|False,
                'VpcConfig': {
                    'SecurityGroupIds': [
                        'string',
                    ],
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'RoleArn': 'string'
        },
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type MonitoringScheduleName

string

param MonitoringScheduleName

[REQUIRED]

The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an Amazon Web Services account.

type MonitoringScheduleConfig

dict

param MonitoringScheduleConfig

[REQUIRED]

The configuration object that specifies the monitoring schedule and defines the monitoring job.

  • ScheduleConfig (dict) --

    Configures the monitoring schedule.

    • ScheduleExpression (string) -- [REQUIRED]

      A cron expression that describes details about the monitoring schedule.

      The supported cron expressions are:

      • If you want to set the job to start every hour, use the following: Hourly: cron(0 * ? * * *)

      • If you want to start the job daily: cron(0 [00-23] ? * * *)

      • If you want to run the job one time, immediately, use the following keyword: NOW

      For example, the following are valid cron expressions:

      • Daily at noon UTC: cron(0 12 ? * * *)

      • Daily at midnight UTC: cron(0 0 ? * * *)

      To support running every 6, 12 hours, the following are also supported:

      cron(0 [00-23]/[01-24] ? * * *)

      For example, the following are valid cron expressions:

      • Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *)

      • Every two hours starting at midnight: cron(0 0/2 ? * * *)

      Note

      • Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.

      • We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.

      You can also specify the keyword NOW to run the monitoring job immediately, one time, without recurring.

    • DataAnalysisStartTime (string) --

      Sets the start time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to monitor the five hours of data in your dataset that precede the start of each monitoring job, you would specify: "-PT5H" .

      The start time that you specify must not precede the end time that you specify by more than 24 hours. You specify the end time with the DataAnalysisEndTime parameter.

      If you set ScheduleExpression to NOW , this parameter is required.

    • DataAnalysisEndTime (string) --

      Sets the end time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to end the window one hour before the start of each monitoring job, you would specify: "-PT1H" .

      The end time that you specify must not follow the start time that you specify by more than 24 hours. You specify the start time with the DataAnalysisStartTime parameter.

      If you set ScheduleExpression to NOW , this parameter is required.

  • MonitoringJobDefinition (dict) --

    Defines the monitoring job.

    • BaselineConfig (dict) --

      Baseline configuration used to validate that the data conforms to the specified constraints and statistics

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the monitoring job.

      • ConstraintsResource (dict) --

        The baseline constraint file in Amazon S3 that the current monitoring job should validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

      • StatisticsResource (dict) --

        The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the statistics resource.

    • MonitoringInputs (list) -- [REQUIRED]

      The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker Endpoint.

      • (dict) --

        The inputs for a monitoring job.

        • EndpointInput (dict) --

          The endpoint for a monitoring job.

          • EndpointName (string) -- [REQUIRED]

            An endpoint in customer's account which has enabled DataCaptureConfig enabled.

          • LocalPath (string) -- [REQUIRED]

            Path to the filesystem where the endpoint data is available to the container.

          • S3InputMode (string) --

            Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

          • S3DataDistributionType (string) --

            Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

          • FeaturesAttribute (string) --

            The attributes of the input data that are the input features.

          • InferenceAttribute (string) --

            The attribute of the input data that represents the ground truth label.

          • ProbabilityAttribute (string) --

            In a classification problem, the attribute that represents the class probability.

          • ProbabilityThresholdAttribute (float) --

            The threshold for the class probability to be evaluated as a positive result.

          • StartTimeOffset (string) --

            If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • EndTimeOffset (string) --

            If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • ExcludeFeaturesAttribute (string) --

            The attributes of the input data to exclude from the analysis.

        • BatchTransformInput (dict) --

          Input object for the batch transform job.

          • DataCapturedDestinationS3Uri (string) -- [REQUIRED]

            The Amazon S3 location being used to capture the data.

          • DatasetFormat (dict) -- [REQUIRED]

            The dataset format for your batch transform job.

            • Csv (dict) --

              The CSV dataset used in the monitoring job.

              • Header (boolean) --

                Indicates if the CSV data has a header.

            • Json (dict) --

              The JSON dataset used in the monitoring job

              • Line (boolean) --

                Indicates if the file should be read as a JSON object per line.

            • Parquet (dict) --

              The Parquet dataset used in the monitoring job

          • LocalPath (string) -- [REQUIRED]

            Path to the filesystem where the batch transform data is available to the container.

          • S3InputMode (string) --

            Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

          • S3DataDistributionType (string) --

            Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

          • FeaturesAttribute (string) --

            The attributes of the input data that are the input features.

          • InferenceAttribute (string) --

            The attribute of the input data that represents the ground truth label.

          • ProbabilityAttribute (string) --

            In a classification problem, the attribute that represents the class probability.

          • ProbabilityThresholdAttribute (float) --

            The threshold for the class probability to be evaluated as a positive result.

          • StartTimeOffset (string) --

            If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • EndTimeOffset (string) --

            If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • ExcludeFeaturesAttribute (string) --

            The attributes of the input data to exclude from the analysis.

    • MonitoringOutputConfig (dict) -- [REQUIRED]

      The array of outputs from the monitoring job to be uploaded to Amazon S3.

      • MonitoringOutputs (list) -- [REQUIRED]

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) -- [REQUIRED]

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) -- [REQUIRED]

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) -- [REQUIRED]

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • MonitoringResources (dict) -- [REQUIRED]

      Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job. In distributed processing, you specify more than one instance.

      • ClusterConfig (dict) -- [REQUIRED]

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) -- [REQUIRED]

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) -- [REQUIRED]

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) -- [REQUIRED]

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • MonitoringAppSpecification (dict) -- [REQUIRED]

      Configures the monitoring job to run a specified Docker container image.

      • ImageUri (string) -- [REQUIRED]

        The container image to be run by the monitoring job.

      • ContainerEntrypoint (list) --

        Specifies the entrypoint for a container used to run the monitoring job.

        • (string) --

      • ContainerArguments (list) --

        An array of arguments for the container used to run the monitoring job.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

    • StoppingCondition (dict) --

      Specifies a time limit for how long the monitoring job is allowed to run.

      • MaxRuntimeInSeconds (integer) -- [REQUIRED]

        The maximum runtime allowed in seconds.

        Note

        The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

    • Environment (dict) --

      Sets the environment variables in the Docker container.

      • (string) --

        • (string) --

    • NetworkConfig (dict) --

      Specifies networking options for an monitoring job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) -- [REQUIRED]

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) -- [REQUIRED]

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

  • MonitoringJobDefinitionName (string) --

    The name of the monitoring job definition to schedule.

  • MonitoringType (string) --

    The type of the monitoring job definition to schedule.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide .

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleArn': 'string'
}

Response Structure

  • (dict) --

    • MonitoringScheduleArn (string) --

      The Amazon Resource Name (ARN) of the monitoring schedule.

CreateProcessingJob (updated) Link ¶
Changes (request)
{'ProcessingResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                            'ml.g5.16xlarge',
                                                            'ml.g5.24xlarge',
                                                            'ml.g5.2xlarge',
                                                            'ml.g5.48xlarge',
                                                            'ml.g5.4xlarge',
                                                            'ml.g5.8xlarge',
                                                            'ml.g5.xlarge',
                                                            'ml.r5d.12xlarge',
                                                            'ml.r5d.16xlarge',
                                                            'ml.r5d.24xlarge',
                                                            'ml.r5d.2xlarge',
                                                            'ml.r5d.4xlarge',
                                                            'ml.r5d.8xlarge',
                                                            'ml.r5d.large',
                                                            'ml.r5d.xlarge'}}}}

Creates a processing job.

See also: AWS API Documentation

Request Syntax

client.create_processing_job(
    ProcessingInputs=[
        {
            'InputName': 'string',
            'AppManaged': True|False,
            'S3Input': {
                'S3Uri': 'string',
                'LocalPath': 'string',
                'S3DataType': 'ManifestFile'|'S3Prefix',
                'S3InputMode': 'Pipe'|'File',
                'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                'S3CompressionType': 'None'|'Gzip'
            },
            'DatasetDefinition': {
                'AthenaDatasetDefinition': {
                    'Catalog': 'string',
                    'Database': 'string',
                    'QueryString': 'string',
                    'WorkGroup': 'string',
                    'OutputS3Uri': 'string',
                    'KmsKeyId': 'string',
                    'OutputFormat': 'PARQUET'|'ORC'|'AVRO'|'JSON'|'TEXTFILE',
                    'OutputCompression': 'GZIP'|'SNAPPY'|'ZLIB'
                },
                'RedshiftDatasetDefinition': {
                    'ClusterId': 'string',
                    'Database': 'string',
                    'DbUser': 'string',
                    'QueryString': 'string',
                    'ClusterRoleArn': 'string',
                    'OutputS3Uri': 'string',
                    'KmsKeyId': 'string',
                    'OutputFormat': 'PARQUET'|'CSV',
                    'OutputCompression': 'None'|'GZIP'|'BZIP2'|'ZSTD'|'SNAPPY'
                },
                'LocalPath': 'string',
                'DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                'InputMode': 'Pipe'|'File'
            }
        },
    ],
    ProcessingOutputConfig={
        'Outputs': [
            {
                'OutputName': 'string',
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                },
                'FeatureStoreOutput': {
                    'FeatureGroupName': 'string'
                },
                'AppManaged': True|False
            },
        ],
        'KmsKeyId': 'string'
    },
    ProcessingJobName='string',
    ProcessingResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    AppSpecification={
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ]
    },
    Environment={
        'string': 'string'
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    ExperimentConfig={
        'ExperimentName': 'string',
        'TrialName': 'string',
        'TrialComponentDisplayName': 'string',
        'RunName': 'string'
    }
)
type ProcessingInputs

list

param ProcessingInputs

An array of inputs configuring the data to download into the processing container.

  • (dict) --

    The inputs for a processing job. The processing input must specify exactly one of either S3Input or DatasetDefinition types.

    • InputName (string) -- [REQUIRED]

      The name for the processing job input.

    • AppManaged (boolean) --

      When True , input operations such as data download are managed natively by the processing job application. When False (default), input operations are managed by Amazon SageMaker.

    • S3Input (dict) --

      Configuration for downloading input data from Amazon S3 into the processing container.

      • S3Uri (string) -- [REQUIRED]

        The URI of the Amazon S3 prefix Amazon SageMaker downloads data required to run a processing job.

      • LocalPath (string) --

        The local path in your container where you want Amazon SageMaker to write input data to. LocalPath is an absolute path to the input data and must begin with /opt/ml/processing/ . LocalPath is a required parameter when AppManaged is False (default).

      • S3DataType (string) -- [REQUIRED]

        Whether you use an S3Prefix or a ManifestFile for the data type. If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for the processing job. If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for the processing job.

      • S3InputMode (string) --

        Whether to use File or Pipe input mode. In File mode, Amazon SageMaker copies the data from the input source onto the local ML storage volume before starting your processing container. This is the most commonly used input mode. In Pipe mode, Amazon SageMaker streams input data from the source directly to your processing container into named pipes without using the ML storage volume.

      • S3DataDistributionType (string) --

        Whether to distribute the data from Amazon S3 to all processing instances with FullyReplicated , or whether the data from Amazon S3 is shared by Amazon S3 key, downloading one shard of data to each processing instance.

      • S3CompressionType (string) --

        Whether to GZIP-decompress the data in Amazon S3 as it is streamed into the processing container. Gzip can only be used when Pipe mode is specified as the S3InputMode . In Pipe mode, Amazon SageMaker streams input data from the source directly to your container without using the EBS volume.

    • DatasetDefinition (dict) --

      Configuration for a Dataset Definition input.

      • AthenaDatasetDefinition (dict) --

        Configuration for Athena Dataset Definition input.

        • Catalog (string) -- [REQUIRED]

          The name of the data catalog used in Athena query execution.

        • Database (string) -- [REQUIRED]

          The name of the database used in the Athena query execution.

        • QueryString (string) -- [REQUIRED]

          The SQL query statements, to be executed.

        • WorkGroup (string) --

          The name of the workgroup in which the Athena query is being started.

        • OutputS3Uri (string) -- [REQUIRED]

          The location in Amazon S3 where Athena query results are stored.

        • KmsKeyId (string) --

          The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data generated from an Athena query execution.

        • OutputFormat (string) -- [REQUIRED]

          The data storage format for Athena query results.

        • OutputCompression (string) --

          The compression used for Athena query results.

      • RedshiftDatasetDefinition (dict) --

        Configuration for Redshift Dataset Definition input.

        • ClusterId (string) -- [REQUIRED]

          The Redshift cluster Identifier.

        • Database (string) -- [REQUIRED]

          The name of the Redshift database used in Redshift query execution.

        • DbUser (string) -- [REQUIRED]

          The database user name used in Redshift query execution.

        • QueryString (string) -- [REQUIRED]

          The SQL query statements to be executed.

        • ClusterRoleArn (string) -- [REQUIRED]

          The IAM role attached to your Redshift cluster that Amazon SageMaker uses to generate datasets.

        • OutputS3Uri (string) -- [REQUIRED]

          The location in Amazon S3 where the Redshift query results are stored.

        • KmsKeyId (string) --

          The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data from a Redshift execution.

        • OutputFormat (string) -- [REQUIRED]

          The data storage format for Redshift query results.

        • OutputCompression (string) --

          The compression used for Redshift query results.

      • LocalPath (string) --

        The local path where you want Amazon SageMaker to download the Dataset Definition inputs to run a processing job. LocalPath is an absolute path to the input data. This is a required parameter when AppManaged is False (default).

      • DataDistributionType (string) --

        Whether the generated dataset is FullyReplicated or ShardedByS3Key (default).

      • InputMode (string) --

        Whether to use File or Pipe input mode. In File (default) mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode. In Pipe mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.

type ProcessingOutputConfig

dict

param ProcessingOutputConfig

Output configuration for the processing job.

  • Outputs (list) -- [REQUIRED]

    An array of outputs configuring the data to upload from the processing container.

    • (dict) --

      Describes the results of a processing job. The processing output must specify exactly one of either S3Output or FeatureStoreOutput types.

      • OutputName (string) -- [REQUIRED]

        The name for the processing job output.

      • S3Output (dict) --

        Configuration for processing job outputs in Amazon S3.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 bucket where you want Amazon SageMaker to save the results of a processing job.

        • LocalPath (string) -- [REQUIRED]

          The local path of a directory where you want Amazon SageMaker to upload its contents to Amazon S3. LocalPath is an absolute path to a directory containing output files. This directory will be created by the platform and exist when your container's entrypoint is invoked.

        • S3UploadMode (string) -- [REQUIRED]

          Whether to upload the results of the processing job continuously or after the job completes.

      • FeatureStoreOutput (dict) --

        Configuration for processing job outputs in Amazon SageMaker Feature Store. This processing output type is only supported when AppManaged is specified.

        • FeatureGroupName (string) -- [REQUIRED]

          The name of the Amazon SageMaker FeatureGroup to use as the destination for processing job output. Note that your processing script is responsible for putting records into your Feature Store.

      • AppManaged (boolean) --

        When True , output operations such as data upload are managed natively by the processing job application. When False (default), output operations are managed by Amazon SageMaker.

  • KmsKeyId (string) --

    The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the processing job output. KmsKeyId can be an ID of a KMS key, ARN of a KMS key, alias of a KMS key, or alias of a KMS key. The KmsKeyId is applied to all outputs.

type ProcessingJobName

string

param ProcessingJobName

[REQUIRED]

The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

type ProcessingResources

dict

param ProcessingResources

[REQUIRED]

Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In distributed training, you specify more than one instance.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the resources in a cluster used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the processing job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume in gigabytes that you want to provision. You must specify sufficient ML storage for your scenario.

      Note

      Certain Nitro-based instances include local storage with a fixed total size, dependent on the instance type. When using these instances for processing, Amazon SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request a VolumeSizeInGB greater than the total size of the local instance storage.

      For a list of instance types that support local instance storage, including the total size per instance type, see Instance Store Volumes.

    • VolumeKmsKeyId (string) --

      The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the processing job.

      Note

      Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

      For a list of instance types that support local instance storage, see Instance Store Volumes.

      For more information about local instance storage encryption, see SSD Instance Store Volumes.

type StoppingCondition

dict

param StoppingCondition

The time limit for how long the processing job is allowed to run.

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    Specifies the maximum runtime in seconds.

type AppSpecification

dict

param AppSpecification

[REQUIRED]

Configures the processing job to run a specified Docker container image.

  • ImageUri (string) -- [REQUIRED]

    The container image to be run by the processing job.

  • ContainerEntrypoint (list) --

    The entrypoint for a container used to run a processing job.

    • (string) --

  • ContainerArguments (list) --

    The arguments for a container used to run a processing job.

    • (string) --

type Environment

dict

param Environment

The environment variables to set in the Docker container. Up to 100 key and values entries in the map are supported.

  • (string) --

    • (string) --

type NetworkConfig

dict

param NetworkConfig

Networking options for a processing job, such as whether to allow inbound and outbound network calls to and from processing containers, and the VPC subnets and security groups to use for VPC-enabled processing jobs.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

  • VpcConfig (dict) --

    Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide .

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

type ExperimentConfig

dict

param ExperimentConfig

Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the following APIs:

  • ExperimentName (string) --

    The name of an existing experiment to associate with the trial component.

  • TrialName (string) --

    The name of an existing trial to associate the trial component with. If not specified, a new trial is created.

  • TrialComponentDisplayName (string) --

    The display name for the trial component. If this key isn't specified, the display name is the trial component name.

  • RunName (string) --

    The name of the experiment run to associate with the trial component.

rtype

dict

returns

Response Syntax

{
    'ProcessingJobArn': 'string'
}

Response Structure

  • (dict) --

    • ProcessingJobArn (string) --

      The Amazon Resource Name (ARN) of the processing job.

CreateTrainingJob (updated) Link ¶
Changes (request)
{'DebugRuleConfigurations': {'InstanceType': {'ml.g5.12xlarge',
                                              'ml.g5.16xlarge',
                                              'ml.g5.24xlarge',
                                              'ml.g5.2xlarge',
                                              'ml.g5.48xlarge',
                                              'ml.g5.4xlarge',
                                              'ml.g5.8xlarge',
                                              'ml.g5.xlarge',
                                              'ml.r5d.12xlarge',
                                              'ml.r5d.16xlarge',
                                              'ml.r5d.24xlarge',
                                              'ml.r5d.2xlarge',
                                              'ml.r5d.4xlarge',
                                              'ml.r5d.8xlarge',
                                              'ml.r5d.large',
                                              'ml.r5d.xlarge'}},
 'ProfilerRuleConfigurations': {'InstanceType': {'ml.g5.12xlarge',
                                                 'ml.g5.16xlarge',
                                                 'ml.g5.24xlarge',
                                                 'ml.g5.2xlarge',
                                                 'ml.g5.48xlarge',
                                                 'ml.g5.4xlarge',
                                                 'ml.g5.8xlarge',
                                                 'ml.g5.xlarge',
                                                 'ml.r5d.12xlarge',
                                                 'ml.r5d.16xlarge',
                                                 'ml.r5d.24xlarge',
                                                 'ml.r5d.2xlarge',
                                                 'ml.r5d.4xlarge',
                                                 'ml.r5d.8xlarge',
                                                 'ml.r5d.large',
                                                 'ml.r5d.xlarge'}},
 'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                        'ml.r5.16xlarge',
                                                        'ml.r5.24xlarge',
                                                        'ml.r5.2xlarge',
                                                        'ml.r5.4xlarge',
                                                        'ml.r5.8xlarge',
                                                        'ml.r5.large',
                                                        'ml.r5.xlarge',
                                                        'ml.r5d.12xlarge',
                                                        'ml.r5d.16xlarge',
                                                        'ml.r5d.24xlarge',
                                                        'ml.r5d.2xlarge',
                                                        'ml.r5d.4xlarge',
                                                        'ml.r5d.8xlarge',
                                                        'ml.r5d.large',
                                                        'ml.r5d.xlarge',
                                                        'ml.t3.2xlarge',
                                                        'ml.t3.large',
                                                        'ml.t3.medium',
                                                        'ml.t3.xlarge'}},
                    'InstanceType': {'ml.r5.12xlarge',
                                     'ml.r5.16xlarge',
                                     'ml.r5.24xlarge',
                                     'ml.r5.2xlarge',
                                     'ml.r5.4xlarge',
                                     'ml.r5.8xlarge',
                                     'ml.r5.large',
                                     'ml.r5.xlarge',
                                     'ml.r5d.12xlarge',
                                     'ml.r5d.16xlarge',
                                     'ml.r5d.24xlarge',
                                     'ml.r5d.2xlarge',
                                     'ml.r5d.4xlarge',
                                     'ml.r5d.8xlarge',
                                     'ml.r5d.large',
                                     'ml.r5d.xlarge',
                                     'ml.t3.2xlarge',
                                     'ml.t3.large',
                                     'ml.t3.medium',
                                     'ml.t3.xlarge'}}}

Starts a model training job. After training completes, SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.

If you choose to host your model using SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a machine learning service other than SageMaker, provided that you know how to use them for inference.

In the request body, you provide the following:

  • AlgorithmSpecification - Identifies the training algorithm to use.

  • HyperParameters - Specify these algorithm-specific parameters to enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by SageMaker, see Algorithms.

Warning

Do not include any security-sensitive information including account access IDs, secrets or tokens in any hyperparameter field. If the use of security-sensitive credentials are detected, SageMaker will reject your training job request and return an exception error.

  • InputDataConfig - Describes the input required by the training job and the Amazon S3, EFS, or FSx location where it is stored.

  • OutputDataConfig - Identifies the Amazon S3 bucket where you want SageMaker to save the results of model training.

  • ResourceConfig - Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance.

  • EnableManagedSpotTraining - Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see Managed Spot Training.

  • RoleArn - The Amazon Resource Name (ARN) that SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that SageMaker can successfully complete model training.

  • StoppingCondition - To help cap training costs, use MaxRuntimeInSeconds to set a time limit for training. Use MaxWaitTimeInSeconds to specify how long a managed spot training job has to complete.

  • Environment - The environment variables to set in the Docker container.

  • RetryStrategy - The number of times to retry the job when the job fails due to an InternalServerError .

For more information about SageMaker, see How It Works.

See also: AWS API Documentation

Request Syntax

client.create_training_job(
    TrainingJobName='string',
    HyperParameters={
        'string': 'string'
    },
    AlgorithmSpecification={
        'TrainingImage': 'string',
        'AlgorithmName': 'string',
        'TrainingInputMode': 'Pipe'|'File'|'FastFile',
        'MetricDefinitions': [
            {
                'Name': 'string',
                'Regex': 'string'
            },
        ],
        'EnableSageMakerMetricsTimeSeries': True|False,
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'TrainingImageConfig': {
            'TrainingRepositoryAccessMode': 'Platform'|'Vpc',
            'TrainingRepositoryAuthConfig': {
                'TrainingRepositoryCredentialsProviderArn': 'string'
            }
        }
    },
    RoleArn='string',
    InputDataConfig=[
        {
            'ChannelName': 'string',
            'DataSource': {
                'S3DataSource': {
                    'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                    'S3Uri': 'string',
                    'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                    'AttributeNames': [
                        'string',
                    ],
                    'InstanceGroupNames': [
                        'string',
                    ]
                },
                'FileSystemDataSource': {
                    'FileSystemId': 'string',
                    'FileSystemAccessMode': 'rw'|'ro',
                    'FileSystemType': 'EFS'|'FSxLustre',
                    'DirectoryPath': 'string'
                }
            },
            'ContentType': 'string',
            'CompressionType': 'None'|'Gzip',
            'RecordWrapperType': 'None'|'RecordIO',
            'InputMode': 'Pipe'|'File'|'FastFile',
            'ShuffleConfig': {
                'Seed': 123
            }
        },
    ],
    OutputDataConfig={
        'KmsKeyId': 'string',
        'S3OutputPath': 'string',
        'CompressionType': 'GZIP'|'NONE'
    },
    ResourceConfig={
        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
        'InstanceCount': 123,
        'VolumeSizeInGB': 123,
        'VolumeKmsKeyId': 'string',
        'KeepAlivePeriodInSeconds': 123,
        'InstanceGroups': [
            {
                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                'InstanceCount': 123,
                'InstanceGroupName': 'string'
            },
        ]
    },
    VpcConfig={
        'SecurityGroupIds': [
            'string',
        ],
        'Subnets': [
            'string',
        ]
    },
    StoppingCondition={
        'MaxRuntimeInSeconds': 123,
        'MaxWaitTimeInSeconds': 123,
        'MaxPendingTimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    EnableNetworkIsolation=True|False,
    EnableInterContainerTrafficEncryption=True|False,
    EnableManagedSpotTraining=True|False,
    CheckpointConfig={
        'S3Uri': 'string',
        'LocalPath': 'string'
    },
    DebugHookConfig={
        'LocalPath': 'string',
        'S3OutputPath': 'string',
        'HookParameters': {
            'string': 'string'
        },
        'CollectionConfigurations': [
            {
                'CollectionName': 'string',
                'CollectionParameters': {
                    'string': 'string'
                }
            },
        ]
    },
    DebugRuleConfigurations=[
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    TensorBoardOutputConfig={
        'LocalPath': 'string',
        'S3OutputPath': 'string'
    },
    ExperimentConfig={
        'ExperimentName': 'string',
        'TrialName': 'string',
        'TrialComponentDisplayName': 'string',
        'RunName': 'string'
    },
    ProfilerConfig={
        'S3OutputPath': 'string',
        'ProfilingIntervalInMilliseconds': 123,
        'ProfilingParameters': {
            'string': 'string'
        },
        'DisableProfiler': True|False
    },
    ProfilerRuleConfigurations=[
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    Environment={
        'string': 'string'
    },
    RetryStrategy={
        'MaximumRetryAttempts': 123
    },
    RemoteDebugConfig={
        'EnableRemoteDebug': True|False
    },
    InfraCheckConfig={
        'EnableInfraCheck': True|False
    },
    SessionChainingConfig={
        'EnableSessionTagChaining': True|False
    }
)
type TrainingJobName

string

param TrainingJobName

[REQUIRED]

The name of the training job. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.

type HyperParameters

dict

param HyperParameters

Algorithm-specific parameters that influence the quality of the model. You set hyperparameters before you start the learning process. For a list of hyperparameters for each training algorithm provided by SageMaker, see Algorithms.

You can specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value pair. Each key and value is limited to 256 characters, as specified by the Length Constraint .

Warning

Do not include any security-sensitive information including account access IDs, secrets or tokens in any hyperparameter field. If the use of security-sensitive credentials are detected, SageMaker will reject your training job request and return an exception error.

  • (string) --

    • (string) --

type AlgorithmSpecification

dict

param AlgorithmSpecification

[REQUIRED]

The registry path of the Docker image that contains the training algorithm and algorithm-specific metadata, including the input mode. For more information about algorithms provided by SageMaker, see Algorithms. For information about providing your own algorithms, see Using Your Own Algorithms with Amazon SageMaker.

  • TrainingImage (string) --

    The registry path of the Docker image that contains the training algorithm. For information about docker registry paths for SageMaker built-in algorithms, see Docker Registry Paths and Example Code in the Amazon SageMaker developer guide . SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information about using your custom training container, see Using Your Own Algorithms with Amazon SageMaker.

    Note

    You must specify either the algorithm name to the AlgorithmName parameter or the image URI of the algorithm container to the TrainingImage parameter.

    For more information, see the note in the AlgorithmName parameter description.

  • AlgorithmName (string) --

    The name of the algorithm resource to use for the training job. This must be an algorithm resource that you created or subscribe to on Amazon Web Services Marketplace.

    Note

    You must specify either the algorithm name to the AlgorithmName parameter or the image URI of the algorithm container to the TrainingImage parameter.

    Note that the AlgorithmName parameter is mutually exclusive with the TrainingImage parameter. If you specify a value for the AlgorithmName parameter, you can't specify a value for TrainingImage , and vice versa.

    If you specify values for both parameters, the training job might break; if you don't specify any value for both parameters, the training job might raise a null error.

  • TrainingInputMode (string) -- [REQUIRED]

    The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

    Pipe mode

    If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

    File mode

    If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

    You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

    For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

    FastFile mode

    If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

    FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

  • MetricDefinitions (list) --

    A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. SageMaker publishes each metric to Amazon CloudWatch.

    • (dict) --

      Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

      • Name (string) -- [REQUIRED]

        The name of the metric.

      • Regex (string) -- [REQUIRED]

        A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

  • EnableSageMakerMetricsTimeSeries (boolean) --

    To generate and save time-series metrics during training, set to true . The default is false and time-series metrics aren't generated except in the following cases:

  • ContainerEntrypoint (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 more information.

    • (string) --

  • ContainerArguments (list) --

    The arguments for a container used to run a training job. See How Amazon SageMaker Runs Your Training Image for additional information.

    • (string) --

  • TrainingImageConfig (dict) --

    The configuration to use an image from a private Docker registry for a training job.

    • TrainingRepositoryAccessMode (string) -- [REQUIRED]

      The method that your training job will use to gain access to the images in your private Docker registry. For access to an image in a private Docker registry, set to Vpc .

    • TrainingRepositoryAuthConfig (dict) --

      An object containing authentication information for a private Docker registry containing your training images.

      • TrainingRepositoryCredentialsProviderArn (string) -- [REQUIRED]

        The Amazon Resource Name (ARN) of an Amazon Web Services Lambda function used to give SageMaker access credentials to your private Docker registry.

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that SageMaker can assume to perform tasks on your behalf.

During model training, SageMaker needs your permission to read input data from an S3 bucket, download a Docker image that contains training code, write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant permissions for all of these tasks to an IAM role. For more information, see SageMaker Roles.

Note

To be able to pass this role to SageMaker, the caller of this API must have the iam:PassRole permission.

type InputDataConfig

list

param InputDataConfig

An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location.

Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data . The configuration for each channel provides the S3, EFS, or FSx location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format.

Depending on the input mode that the algorithm supports, SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams. For example, if you specify an EFS location, input data files are available as input streams. They do not need to be downloaded.

Your input must be in the same Amazon Web Services region as your training job.

  • (dict) --

    A channel is a named input source that training algorithms can consume.

    • ChannelName (string) -- [REQUIRED]

      The name of the channel.

    • DataSource (dict) -- [REQUIRED]

      The location of the channel data.

      • S3DataSource (dict) --

        The S3 location of the data source that is associated with a channel.

        • S3DataType (string) -- [REQUIRED]

          If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

          If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

          If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

        • S3Uri (string) -- [REQUIRED]

          Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

          • A key name prefix might look like this: s3://bucketname/exampleprefix/

          • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

          Your input bucket must be located in same Amazon Web Services region as your training job.

        • S3DataDistributionType (string) --

          If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

          If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

          Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

          In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

        • AttributeNames (list) --

          A list of one or more attribute names to use that are found in a specified augmented manifest file.

          • (string) --

        • InstanceGroupNames (list) --

          A list of names of instance groups that get data from the S3 data source.

          • (string) --

      • FileSystemDataSource (dict) --

        The file system that is associated with a channel.

        • FileSystemId (string) -- [REQUIRED]

          The file system id.

        • FileSystemAccessMode (string) -- [REQUIRED]

          The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

        • FileSystemType (string) -- [REQUIRED]

          The file system type.

        • DirectoryPath (string) -- [REQUIRED]

          The full path to the directory to associate with the channel.

    • ContentType (string) --

      The MIME type of the data.

    • CompressionType (string) --

      If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

    • RecordWrapperType (string) --

      Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

      In File mode, leave this field unset or set it to None.

    • InputMode (string) --

      (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

      To use a model for incremental training, choose File input model.

    • ShuffleConfig (dict) --

      A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

      For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

      • Seed (integer) -- [REQUIRED]

        Determines the shuffling order in ShuffleConfig value.

type OutputDataConfig

dict

param OutputDataConfig

[REQUIRED]

Specifies the path to the S3 location where you want to store model artifacts. SageMaker creates subfolders for the artifacts.

  • KmsKeyId (string) --

    The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

    • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

    • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

    • // KMS Key Alias "alias/ExampleAlias"

    • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

    If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

    The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

  • S3OutputPath (string) -- [REQUIRED]

    Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

  • CompressionType (string) --

    The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

type ResourceConfig

dict

param ResourceConfig

[REQUIRED]

The resources, including the ML compute instances and ML storage volumes, to use for model training.

ML storage volumes store model artifacts and incremental states. Training algorithms might also use ML storage volumes for scratch space. If you want SageMaker to use the ML storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

  • InstanceType (string) --

    The ML compute instance type.

    Note

    SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

    Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

    • US East (N. Virginia) (us-east-1)

    • US West (Oregon) (us-west-2)

    To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

  • InstanceCount (integer) --

    The number of ML compute instances to use. For distributed training, provide a value greater than 1.

  • VolumeSizeInGB (integer) -- [REQUIRED]

    The size of the ML storage volume that you want to provision.

    ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

    When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

    When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

    To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

    To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

  • VolumeKmsKeyId (string) --

    The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

    Note

    Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

    For a list of instance types that support local instance storage, see Instance Store Volumes.

    For more information about local instance storage encryption, see SSD Instance Store Volumes.

    The VolumeKmsKeyId can be in any of the following formats:

    • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

    • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

  • KeepAlivePeriodInSeconds (integer) --

    The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

  • InstanceGroups (list) --

    The configuration of a heterogeneous cluster in JSON format.

    • (dict) --

      Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

      • InstanceType (string) -- [REQUIRED]

        Specifies the instance type of the instance group.

      • InstanceCount (integer) -- [REQUIRED]

        Specifies the number of instances of the instance group.

      • InstanceGroupName (string) -- [REQUIRED]

        Specifies the name of the instance group.

type VpcConfig

dict

param VpcConfig

A VpcConfig object that specifies the VPC that you want your training job to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

  • SecurityGroupIds (list) -- [REQUIRED]

    The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

    • (string) --

  • Subnets (list) -- [REQUIRED]

    The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

    • (string) --

type StoppingCondition

dict

param StoppingCondition

[REQUIRED]

Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.

  • MaxRuntimeInSeconds (integer) --

    The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

    For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

    For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

    The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

  • MaxWaitTimeInSeconds (integer) --

    The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

    When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

  • MaxPendingTimeInSeconds (integer) --

    The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

type Tags

list

param Tags

An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

  • (dict) --

    A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

    You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.

    For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.

    • Key (string) -- [REQUIRED]

      The tag key. Tag keys must be unique per resource.

    • Value (string) -- [REQUIRED]

      The tag value.

type EnableNetworkIsolation

boolean

param EnableNetworkIsolation

Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If you enable network isolation for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

type EnableInterContainerTrafficEncryption

boolean

param EnableInterContainerTrafficEncryption

To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training. For more information, see Protect Communications Between ML Compute Instances in a Distributed Training Job.

type EnableManagedSpotTraining

boolean

param EnableManagedSpotTraining

To train models using managed spot training, choose True . Managed spot training provides a fully managed and scalable infrastructure for training machine learning models. this option is useful when training jobs can be interrupted and when there is flexibility when the training job is run.

The complete and intermediate results of jobs are stored in an Amazon S3 bucket, and can be used as a starting point to train models incrementally. Amazon SageMaker provides metrics and logs in CloudWatch. They can be used to see when managed spot training jobs are running, interrupted, resumed, or completed.

type CheckpointConfig

dict

param CheckpointConfig

Contains information about the output location for managed spot training checkpoint data.

  • S3Uri (string) -- [REQUIRED]

    Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

  • LocalPath (string) --

    (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

type DebugHookConfig

dict

param DebugHookConfig

Configuration information for the Amazon SageMaker Debugger hook parameters, metric and tensor collections, and storage paths. To learn more about how to configure the DebugHookConfig parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

  • LocalPath (string) --

    Path to local storage location for metrics and tensors. Defaults to /opt/ml/output/tensors/ .

  • S3OutputPath (string) -- [REQUIRED]

    Path to Amazon S3 storage location for metrics and tensors.

  • HookParameters (dict) --

    Configuration information for the Amazon SageMaker Debugger hook parameters.

    • (string) --

      • (string) --

  • CollectionConfigurations (list) --

    Configuration information for Amazon SageMaker Debugger tensor collections. To learn more about how to configure the CollectionConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    • (dict) --

      Configuration information for the Amazon SageMaker Debugger output tensor collections.

      • CollectionName (string) --

        The name of the tensor collection. The name must be unique relative to other rule configuration names.

      • CollectionParameters (dict) --

        Parameter values for the tensor collection. The allowed parameters are "name" , "include_regex" , "reduction_config" , "save_config" , "tensor_names" , and "save_histogram" .

        • (string) --

          • (string) --

type DebugRuleConfigurations

list

param DebugRuleConfigurations

Configuration information for Amazon SageMaker Debugger rules for debugging output tensors.

  • (dict) --

    Configuration information for SageMaker Debugger rules for debugging. To learn more about how to configure the DebugRuleConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    • RuleConfigurationName (string) -- [REQUIRED]

      The name of the rule configuration. It must be unique relative to other rule configuration names.

    • LocalPath (string) --

      Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

    • S3OutputPath (string) --

      Path to Amazon S3 storage location for rules.

    • RuleEvaluatorImage (string) -- [REQUIRED]

      The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

    • InstanceType (string) --

      The instance type to deploy a custom rule for debugging a training job.

    • VolumeSizeInGB (integer) --

      The size, in GB, of the ML storage volume attached to the processing instance.

    • RuleParameters (dict) --

      Runtime configuration for rule container.

      • (string) --

        • (string) --

type TensorBoardOutputConfig

dict

param TensorBoardOutputConfig

Configuration of storage locations for the Amazon SageMaker Debugger TensorBoard output data.

  • LocalPath (string) --

    Path to local storage location for tensorBoard output. Defaults to /opt/ml/output/tensorboard .

  • S3OutputPath (string) -- [REQUIRED]

    Path to Amazon S3 storage location for TensorBoard output.

type ExperimentConfig

dict

param ExperimentConfig

Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the following APIs:

  • ExperimentName (string) --

    The name of an existing experiment to associate with the trial component.

  • TrialName (string) --

    The name of an existing trial to associate the trial component with. If not specified, a new trial is created.

  • TrialComponentDisplayName (string) --

    The display name for the trial component. If this key isn't specified, the display name is the trial component name.

  • RunName (string) --

    The name of the experiment run to associate with the trial component.

type ProfilerConfig

dict

param ProfilerConfig

Configuration information for Amazon SageMaker Debugger system monitoring, framework profiling, and storage paths.

  • S3OutputPath (string) --

    Path to Amazon S3 storage location for system and framework metrics.

  • ProfilingIntervalInMilliseconds (integer) --

    A time interval for capturing system metrics in milliseconds. Available values are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

  • ProfilingParameters (dict) --

    Configuration information for capturing framework metrics. Available key strings for different profiling options are DetailedProfilingConfig , PythonProfilingConfig , and DataLoaderProfilingConfig . The following codes are configuration structures for the ProfilingParameters parameter. To learn more about how to configure the ProfilingParameters parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    • (string) --

      • (string) --

  • DisableProfiler (boolean) --

    Configuration to turn off Amazon SageMaker Debugger's system monitoring and profiling functionality. To turn it off, set to True .

type ProfilerRuleConfigurations

list

param ProfilerRuleConfigurations

Configuration information for Amazon SageMaker Debugger rules for profiling system and framework metrics.

  • (dict) --

    Configuration information for profiling rules.

    • RuleConfigurationName (string) -- [REQUIRED]

      The name of the rule configuration. It must be unique relative to other rule configuration names.

    • LocalPath (string) --

      Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

    • S3OutputPath (string) --

      Path to Amazon S3 storage location for rules.

    • RuleEvaluatorImage (string) -- [REQUIRED]

      The Amazon Elastic Container Registry Image for the managed rule evaluation.

    • InstanceType (string) --

      The instance type to deploy a custom rule for profiling a training job.

    • VolumeSizeInGB (integer) --

      The size, in GB, of the ML storage volume attached to the processing instance.

    • RuleParameters (dict) --

      Runtime configuration for rule container.

      • (string) --

        • (string) --

type Environment

dict

param Environment

The environment variables to set in the Docker container.

  • (string) --

    • (string) --

type RetryStrategy

dict

param RetryStrategy

The number of times to retry the job when the job fails due to an InternalServerError .

  • MaximumRetryAttempts (integer) -- [REQUIRED]

    The number of times to retry the job. When the job is retried, it's SecondaryStatus is changed to STARTING .

type RemoteDebugConfig

dict

param RemoteDebugConfig

Configuration for remote debugging. To learn more about the remote debugging functionality of SageMaker, see Access a training container through Amazon Web Services Systems Manager (SSM) for remote debugging.

  • EnableRemoteDebug (boolean) --

    If set to True, enables remote debugging.

type InfraCheckConfig

dict

param InfraCheckConfig

Contains information about the infrastructure health check configuration for the training job.

  • EnableInfraCheck (boolean) --

    Enables an infrastructure health check.

type SessionChainingConfig

dict

param SessionChainingConfig

Contains information about attribute-based access control (ABAC) for the training job.

  • EnableSessionTagChaining (boolean) --

    Set to True to allow SageMaker to extract session tags from a training job creation role and reuse these tags when assuming the training job execution role.

rtype

dict

returns

Response Syntax

{
    'TrainingJobArn': 'string'
}

Response Structure

  • (dict) --

    • TrainingJobArn (string) --

      The Amazon Resource Name (ARN) of the training job.

DescribeAlgorithm (updated) Link ¶
Changes (response)
{'TrainingSpecification': {'SupportedTrainingInstanceTypes': {'ml.r5.12xlarge',
                                                              'ml.r5.16xlarge',
                                                              'ml.r5.24xlarge',
                                                              'ml.r5.2xlarge',
                                                              'ml.r5.4xlarge',
                                                              'ml.r5.8xlarge',
                                                              'ml.r5.large',
                                                              'ml.r5.xlarge',
                                                              'ml.r5d.12xlarge',
                                                              'ml.r5d.16xlarge',
                                                              'ml.r5d.24xlarge',
                                                              'ml.r5d.2xlarge',
                                                              'ml.r5d.4xlarge',
                                                              'ml.r5d.8xlarge',
                                                              'ml.r5d.large',
                                                              'ml.r5d.xlarge',
                                                              'ml.t3.2xlarge',
                                                              'ml.t3.large',
                                                              'ml.t3.medium',
                                                              'ml.t3.xlarge'}},
 'ValidationSpecification': {'ValidationProfiles': {'TrainingJobDefinition': {'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                                                                                                     'ml.r5.16xlarge',
                                                                                                                                     'ml.r5.24xlarge',
                                                                                                                                     'ml.r5.2xlarge',
                                                                                                                                     'ml.r5.4xlarge',
                                                                                                                                     'ml.r5.8xlarge',
                                                                                                                                     'ml.r5.large',
                                                                                                                                     'ml.r5.xlarge',
                                                                                                                                     'ml.r5d.12xlarge',
                                                                                                                                     'ml.r5d.16xlarge',
                                                                                                                                     'ml.r5d.24xlarge',
                                                                                                                                     'ml.r5d.2xlarge',
                                                                                                                                     'ml.r5d.4xlarge',
                                                                                                                                     'ml.r5d.8xlarge',
                                                                                                                                     'ml.r5d.large',
                                                                                                                                     'ml.r5d.xlarge',
                                                                                                                                     'ml.t3.2xlarge',
                                                                                                                                     'ml.t3.large',
                                                                                                                                     'ml.t3.medium',
                                                                                                                                     'ml.t3.xlarge'}},
                                                                                                 'InstanceType': {'ml.r5.12xlarge',
                                                                                                                  'ml.r5.16xlarge',
                                                                                                                  'ml.r5.24xlarge',
                                                                                                                  'ml.r5.2xlarge',
                                                                                                                  'ml.r5.4xlarge',
                                                                                                                  'ml.r5.8xlarge',
                                                                                                                  'ml.r5.large',
                                                                                                                  'ml.r5.xlarge',
                                                                                                                  'ml.r5d.12xlarge',
                                                                                                                  'ml.r5d.16xlarge',
                                                                                                                  'ml.r5d.24xlarge',
                                                                                                                  'ml.r5d.2xlarge',
                                                                                                                  'ml.r5d.4xlarge',
                                                                                                                  'ml.r5d.8xlarge',
                                                                                                                  'ml.r5d.large',
                                                                                                                  'ml.r5d.xlarge',
                                                                                                                  'ml.t3.2xlarge',
                                                                                                                  'ml.t3.large',
                                                                                                                  'ml.t3.medium',
                                                                                                                  'ml.t3.xlarge'}}}}}}

Returns a description of the specified algorithm that is in your account.

See also: AWS API Documentation

Request Syntax

client.describe_algorithm(
    AlgorithmName='string'
)
type AlgorithmName

string

param AlgorithmName

[REQUIRED]

The name of the algorithm to describe.

rtype

dict

returns

Response Syntax

{
    'AlgorithmName': 'string',
    'AlgorithmArn': 'string',
    'AlgorithmDescription': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'TrainingSpecification': {
        'TrainingImage': 'string',
        'TrainingImageDigest': 'string',
        'SupportedHyperParameters': [
            {
                'Name': 'string',
                'Description': 'string',
                'Type': 'Integer'|'Continuous'|'Categorical'|'FreeText',
                'Range': {
                    'IntegerParameterRangeSpecification': {
                        'MinValue': 'string',
                        'MaxValue': 'string'
                    },
                    'ContinuousParameterRangeSpecification': {
                        'MinValue': 'string',
                        'MaxValue': 'string'
                    },
                    'CategoricalParameterRangeSpecification': {
                        'Values': [
                            'string',
                        ]
                    }
                },
                'IsTunable': True|False,
                'IsRequired': True|False,
                'DefaultValue': 'string'
            },
        ],
        'SupportedTrainingInstanceTypes': [
            'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
        ],
        'SupportsDistributedTraining': True|False,
        'MetricDefinitions': [
            {
                'Name': 'string',
                'Regex': 'string'
            },
        ],
        'TrainingChannels': [
            {
                'Name': 'string',
                'Description': 'string',
                'IsRequired': True|False,
                'SupportedContentTypes': [
                    'string',
                ],
                'SupportedCompressionTypes': [
                    'None'|'Gzip',
                ],
                'SupportedInputModes': [
                    'Pipe'|'File'|'FastFile',
                ]
            },
        ],
        'SupportedTuningJobObjectiveMetrics': [
            {
                'Type': 'Maximize'|'Minimize',
                'MetricName': 'string'
            },
        ],
        'AdditionalS3DataSource': {
            'S3DataType': 'S3Object'|'S3Prefix',
            'S3Uri': 'string',
            'CompressionType': 'None'|'Gzip'
        }
    },
    'InferenceSpecification': {
        'Containers': [
            {
                'ContainerHostname': 'string',
                'Image': 'string',
                'ImageDigest': 'string',
                'ModelDataUrl': 'string',
                'ModelDataSource': {
                    'S3DataSource': {
                        'S3Uri': 'string',
                        'S3DataType': 'S3Prefix'|'S3Object',
                        'CompressionType': 'None'|'Gzip',
                        'ModelAccessConfig': {
                            'AcceptEula': True|False
                        },
                        'HubAccessConfig': {
                            'HubContentArn': 'string'
                        }
                    }
                },
                'ProductId': 'string',
                'Environment': {
                    'string': 'string'
                },
                'ModelInput': {
                    'DataInputConfig': 'string'
                },
                'Framework': 'string',
                'FrameworkVersion': 'string',
                'NearestModelName': 'string',
                'AdditionalS3DataSource': {
                    'S3DataType': 'S3Object'|'S3Prefix',
                    'S3Uri': 'string',
                    'CompressionType': 'None'|'Gzip'
                }
            },
        ],
        'SupportedTransformInstanceTypes': [
            'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r6i.large'|'ml.r6i.xlarge'|'ml.r6i.2xlarge'|'ml.r6i.4xlarge'|'ml.r6i.8xlarge'|'ml.r6i.12xlarge'|'ml.r6i.16xlarge'|'ml.r6i.24xlarge'|'ml.r6i.32xlarge'|'ml.m7i.large'|'ml.m7i.xlarge'|'ml.m7i.2xlarge'|'ml.m7i.4xlarge'|'ml.m7i.8xlarge'|'ml.m7i.12xlarge'|'ml.m7i.16xlarge'|'ml.m7i.24xlarge'|'ml.m7i.48xlarge'|'ml.c7i.large'|'ml.c7i.xlarge'|'ml.c7i.2xlarge'|'ml.c7i.4xlarge'|'ml.c7i.8xlarge'|'ml.c7i.12xlarge'|'ml.c7i.16xlarge'|'ml.c7i.24xlarge'|'ml.c7i.48xlarge'|'ml.r7i.large'|'ml.r7i.xlarge'|'ml.r7i.2xlarge'|'ml.r7i.4xlarge'|'ml.r7i.8xlarge'|'ml.r7i.12xlarge'|'ml.r7i.16xlarge'|'ml.r7i.24xlarge'|'ml.r7i.48xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge',
        ],
        'SupportedRealtimeInferenceInstanceTypes': [
            'ml.t2.medium'|'ml.t2.large'|'ml.t2.xlarge'|'ml.t2.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m5d.large'|'ml.m5d.xlarge'|'ml.m5d.2xlarge'|'ml.m5d.4xlarge'|'ml.m5d.12xlarge'|'ml.m5d.24xlarge'|'ml.c4.large'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.large'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5d.large'|'ml.c5d.xlarge'|'ml.c5d.2xlarge'|'ml.c5d.4xlarge'|'ml.c5d.9xlarge'|'ml.c5d.18xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.12xlarge'|'ml.r5.24xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.12xlarge'|'ml.r5d.24xlarge'|'ml.inf1.xlarge'|'ml.inf1.2xlarge'|'ml.inf1.6xlarge'|'ml.inf1.24xlarge'|'ml.dl1.24xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.g6.xlarge'|'ml.g6.2xlarge'|'ml.g6.4xlarge'|'ml.g6.8xlarge'|'ml.g6.12xlarge'|'ml.g6.16xlarge'|'ml.g6.24xlarge'|'ml.g6.48xlarge'|'ml.p4d.24xlarge'|'ml.c7g.large'|'ml.c7g.xlarge'|'ml.c7g.2xlarge'|'ml.c7g.4xlarge'|'ml.c7g.8xlarge'|'ml.c7g.12xlarge'|'ml.c7g.16xlarge'|'ml.m6g.large'|'ml.m6g.xlarge'|'ml.m6g.2xlarge'|'ml.m6g.4xlarge'|'ml.m6g.8xlarge'|'ml.m6g.12xlarge'|'ml.m6g.16xlarge'|'ml.m6gd.large'|'ml.m6gd.xlarge'|'ml.m6gd.2xlarge'|'ml.m6gd.4xlarge'|'ml.m6gd.8xlarge'|'ml.m6gd.12xlarge'|'ml.m6gd.16xlarge'|'ml.c6g.large'|'ml.c6g.xlarge'|'ml.c6g.2xlarge'|'ml.c6g.4xlarge'|'ml.c6g.8xlarge'|'ml.c6g.12xlarge'|'ml.c6g.16xlarge'|'ml.c6gd.large'|'ml.c6gd.xlarge'|'ml.c6gd.2xlarge'|'ml.c6gd.4xlarge'|'ml.c6gd.8xlarge'|'ml.c6gd.12xlarge'|'ml.c6gd.16xlarge'|'ml.c6gn.large'|'ml.c6gn.xlarge'|'ml.c6gn.2xlarge'|'ml.c6gn.4xlarge'|'ml.c6gn.8xlarge'|'ml.c6gn.12xlarge'|'ml.c6gn.16xlarge'|'ml.r6g.large'|'ml.r6g.xlarge'|'ml.r6g.2xlarge'|'ml.r6g.4xlarge'|'ml.r6g.8xlarge'|'ml.r6g.12xlarge'|'ml.r6g.16xlarge'|'ml.r6gd.large'|'ml.r6gd.xlarge'|'ml.r6gd.2xlarge'|'ml.r6gd.4xlarge'|'ml.r6gd.8xlarge'|'ml.r6gd.12xlarge'|'ml.r6gd.16xlarge'|'ml.p4de.24xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.inf2.xlarge'|'ml.inf2.8xlarge'|'ml.inf2.24xlarge'|'ml.inf2.48xlarge'|'ml.p5.48xlarge'|'ml.m7i.large'|'ml.m7i.xlarge'|'ml.m7i.2xlarge'|'ml.m7i.4xlarge'|'ml.m7i.8xlarge'|'ml.m7i.12xlarge'|'ml.m7i.16xlarge'|'ml.m7i.24xlarge'|'ml.m7i.48xlarge'|'ml.c7i.large'|'ml.c7i.xlarge'|'ml.c7i.2xlarge'|'ml.c7i.4xlarge'|'ml.c7i.8xlarge'|'ml.c7i.12xlarge'|'ml.c7i.16xlarge'|'ml.c7i.24xlarge'|'ml.c7i.48xlarge'|'ml.r7i.large'|'ml.r7i.xlarge'|'ml.r7i.2xlarge'|'ml.r7i.4xlarge'|'ml.r7i.8xlarge'|'ml.r7i.12xlarge'|'ml.r7i.16xlarge'|'ml.r7i.24xlarge'|'ml.r7i.48xlarge',
        ],
        'SupportedContentTypes': [
            'string',
        ],
        'SupportedResponseMIMETypes': [
            'string',
        ]
    },
    'ValidationSpecification': {
        'ValidationRole': 'string',
        'ValidationProfiles': [
            {
                'ProfileName': 'string',
                'TrainingJobDefinition': {
                    'TrainingInputMode': 'Pipe'|'File'|'FastFile',
                    'HyperParameters': {
                        'string': 'string'
                    },
                    'InputDataConfig': [
                        {
                            'ChannelName': 'string',
                            'DataSource': {
                                'S3DataSource': {
                                    'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                                    'S3Uri': 'string',
                                    'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                                    'AttributeNames': [
                                        'string',
                                    ],
                                    'InstanceGroupNames': [
                                        'string',
                                    ]
                                },
                                'FileSystemDataSource': {
                                    'FileSystemId': 'string',
                                    'FileSystemAccessMode': 'rw'|'ro',
                                    'FileSystemType': 'EFS'|'FSxLustre',
                                    'DirectoryPath': 'string'
                                }
                            },
                            'ContentType': 'string',
                            'CompressionType': 'None'|'Gzip',
                            'RecordWrapperType': 'None'|'RecordIO',
                            'InputMode': 'Pipe'|'File'|'FastFile',
                            'ShuffleConfig': {
                                'Seed': 123
                            }
                        },
                    ],
                    'OutputDataConfig': {
                        'KmsKeyId': 'string',
                        'S3OutputPath': 'string',
                        'CompressionType': 'GZIP'|'NONE'
                    },
                    'ResourceConfig': {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                        'InstanceCount': 123,
                        'VolumeSizeInGB': 123,
                        'VolumeKmsKeyId': 'string',
                        'KeepAlivePeriodInSeconds': 123,
                        'InstanceGroups': [
                            {
                                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                                'InstanceCount': 123,
                                'InstanceGroupName': 'string'
                            },
                        ]
                    },
                    'StoppingCondition': {
                        'MaxRuntimeInSeconds': 123,
                        'MaxWaitTimeInSeconds': 123,
                        'MaxPendingTimeInSeconds': 123
                    }
                },
                'TransformJobDefinition': {
                    'MaxConcurrentTransforms': 123,
                    'MaxPayloadInMB': 123,
                    'BatchStrategy': 'MultiRecord'|'SingleRecord',
                    'Environment': {
                        'string': 'string'
                    },
                    'TransformInput': {
                        'DataSource': {
                            'S3DataSource': {
                                'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                                'S3Uri': 'string'
                            }
                        },
                        'ContentType': 'string',
                        'CompressionType': 'None'|'Gzip',
                        'SplitType': 'None'|'Line'|'RecordIO'|'TFRecord'
                    },
                    'TransformOutput': {
                        'S3OutputPath': 'string',
                        'Accept': 'string',
                        'AssembleWith': 'None'|'Line',
                        'KmsKeyId': 'string'
                    },
                    'TransformResources': {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.large'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.4xlarge'|'ml.c6i.8xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r6i.large'|'ml.r6i.xlarge'|'ml.r6i.2xlarge'|'ml.r6i.4xlarge'|'ml.r6i.8xlarge'|'ml.r6i.12xlarge'|'ml.r6i.16xlarge'|'ml.r6i.24xlarge'|'ml.r6i.32xlarge'|'ml.m7i.large'|'ml.m7i.xlarge'|'ml.m7i.2xlarge'|'ml.m7i.4xlarge'|'ml.m7i.8xlarge'|'ml.m7i.12xlarge'|'ml.m7i.16xlarge'|'ml.m7i.24xlarge'|'ml.m7i.48xlarge'|'ml.c7i.large'|'ml.c7i.xlarge'|'ml.c7i.2xlarge'|'ml.c7i.4xlarge'|'ml.c7i.8xlarge'|'ml.c7i.12xlarge'|'ml.c7i.16xlarge'|'ml.c7i.24xlarge'|'ml.c7i.48xlarge'|'ml.r7i.large'|'ml.r7i.xlarge'|'ml.r7i.2xlarge'|'ml.r7i.4xlarge'|'ml.r7i.8xlarge'|'ml.r7i.12xlarge'|'ml.r7i.16xlarge'|'ml.r7i.24xlarge'|'ml.r7i.48xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge',
                        'InstanceCount': 123,
                        'VolumeKmsKeyId': 'string'
                    }
                }
            },
        ]
    },
    'AlgorithmStatus': 'Pending'|'InProgress'|'Completed'|'Failed'|'Deleting',
    'AlgorithmStatusDetails': {
        'ValidationStatuses': [
            {
                'Name': 'string',
                'Status': 'NotStarted'|'InProgress'|'Completed'|'Failed',
                'FailureReason': 'string'
            },
        ],
        'ImageScanStatuses': [
            {
                'Name': 'string',
                'Status': 'NotStarted'|'InProgress'|'Completed'|'Failed',
                'FailureReason': 'string'
            },
        ]
    },
    'ProductId': 'string',
    'CertifyForMarketplace': True|False
}

Response Structure

  • (dict) --

    • AlgorithmName (string) --

      The name of the algorithm being described.

    • AlgorithmArn (string) --

      The Amazon Resource Name (ARN) of the algorithm.

    • AlgorithmDescription (string) --

      A brief summary about the algorithm.

    • CreationTime (datetime) --

      A timestamp specifying when the algorithm was created.

    • TrainingSpecification (dict) --

      Details about training jobs run by this algorithm.

      • TrainingImage (string) --

        The Amazon ECR registry path of the Docker image that contains the training algorithm.

      • TrainingImageDigest (string) --

        An MD5 hash of the training algorithm that identifies the Docker image used for training.

      • SupportedHyperParameters (list) --

        A list of the HyperParameterSpecification objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>

        • (dict) --

          Defines a hyperparameter to be used by an algorithm.

          • Name (string) --

            The name of this hyperparameter. The name must be unique.

          • Description (string) --

            A brief description of the hyperparameter.

          • Type (string) --

            The type of this hyperparameter. The valid types are Integer , Continuous , Categorical , and FreeText .

          • Range (dict) --

            The allowed range for this hyperparameter.

            • IntegerParameterRangeSpecification (dict) --

              A IntegerParameterRangeSpecification object that defines the possible values for an integer hyperparameter.

              • MinValue (string) --

                The minimum integer value allowed.

              • MaxValue (string) --

                The maximum integer value allowed.

            • ContinuousParameterRangeSpecification (dict) --

              A ContinuousParameterRangeSpecification object that defines the possible values for a continuous hyperparameter.

              • MinValue (string) --

                The minimum floating-point value allowed.

              • MaxValue (string) --

                The maximum floating-point value allowed.

            • CategoricalParameterRangeSpecification (dict) --

              A CategoricalParameterRangeSpecification object that defines the possible values for a categorical hyperparameter.

              • Values (list) --

                The allowed categories for the hyperparameter.

                • (string) --

          • IsTunable (boolean) --

            Indicates whether this hyperparameter is tunable in a hyperparameter tuning job.

          • IsRequired (boolean) --

            Indicates whether this hyperparameter is required.

          • DefaultValue (string) --

            The default value for this hyperparameter. If a default value is specified, a hyperparameter cannot be required.

      • SupportedTrainingInstanceTypes (list) --

        A list of the instance types that this algorithm can use for training.

        • (string) --

      • SupportsDistributedTraining (boolean) --

        Indicates whether the algorithm supports distributed training. If set to false, buyers can't request more than one instance during training.

      • MetricDefinitions (list) --

        A list of MetricDefinition objects, which are used for parsing metrics generated by the algorithm.

        • (dict) --

          Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

          • Name (string) --

            The name of the metric.

          • Regex (string) --

            A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

      • TrainingChannels (list) --

        A list of ChannelSpecification objects, which specify the input sources to be used by the algorithm.

        • (dict) --

          Defines a named input source, called a channel, to be used by an algorithm.

          • Name (string) --

            The name of the channel.

          • Description (string) --

            A brief description of the channel.

          • IsRequired (boolean) --

            Indicates whether the channel is required by the algorithm.

          • SupportedContentTypes (list) --

            The supported MIME types for the data.

            • (string) --

          • SupportedCompressionTypes (list) --

            The allowed compression types, if data compression is used.

            • (string) --

          • SupportedInputModes (list) --

            The allowed input mode, either FILE or PIPE.

            In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.

            In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.

            • (string) --

              The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

              Pipe mode

              If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

              File mode

              If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

              You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

              For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

              FastFile mode

              If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

              FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

      • SupportedTuningJobObjectiveMetrics (list) --

        A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.

        • (dict) --

          Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter. If you want to define a custom objective metric, see Define metrics and environment variables.

          • Type (string) --

            Whether to minimize or maximize the objective metric.

          • MetricName (string) --

            The name of the metric to use for the objective metric.

      • AdditionalS3DataSource (dict) --

        The additional data source used during the training job.

        • S3DataType (string) --

          The data type of the additional data source that you specify for use in inference or training.

        • S3Uri (string) --

          The uniform resource identifier (URI) used to identify an additional data source used in inference or training.

        • CompressionType (string) --

          The type of compression used for an additional data source used in inference or training. Specify None if your additional data source is not compressed.

    • InferenceSpecification (dict) --

      Details about inference jobs that the algorithm runs.

      • Containers (list) --

        The Amazon ECR registry path of the Docker image that contains the inference code.

        • (dict) --

          Describes the Docker container for the model package.

          • ContainerHostname (string) --

            The DNS host name for the Docker container.

          • Image (string) --

            The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.

            If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

          • ImageDigest (string) --

            An MD5 hash of the training algorithm that identifies the Docker image used for training.

          • ModelDataUrl (string) --

            The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive ( .tar.gz suffix).

            Note

            The model artifacts must be in an S3 bucket that is in the same region as the model package.

          • ModelDataSource (dict) --

            Specifies the location of ML model data to deploy during endpoint creation.

            • S3DataSource (dict) --

              Specifies the S3 location of ML model data to deploy.

              • S3Uri (string) --

                Specifies the S3 path of ML model data to deploy.

              • S3DataType (string) --

                Specifies the type of ML model data to deploy.

                If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix identified by S3Uri always ends with a forward slash (/).

                If you choose S3Object , S3Uri identifies an object that is the ML model data to deploy.

              • CompressionType (string) --

                Specifies how the ML model data is prepared.

                If you choose Gzip and choose S3Object as the value of S3DataType , S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment.

                If you choose None and chooose S3Object as the value of S3DataType , S3Uri identifies an object that represents an uncompressed ML model to deploy.

                If you choose None and choose S3Prefix as the value of S3DataType , S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy.

                If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code:

                • If you choose S3Object as the value of S3DataType , then SageMaker will split the key of the S3 object referenced by S3Uri by slash (/), and use the last part as the filename of the file holding the content of the S3 object.

                • If you choose S3Prefix as the value of S3DataType , then for each S3 object under the key name pefix referenced by S3Uri , SageMaker will trim its key by the prefix, and use the remainder as the path (relative to /opt/ml/model ) of the file holding the content of the S3 object. SageMaker will split the remainder by slash (/), using intermediate parts as directory names and the last part as filename of the file holding the content of the S3 object.

                • Do not use any of the following as file names or directory names:

                  • An empty or blank string

                  • A string which contains null bytes

                  • A string longer than 255 bytes

                  • A single dot ( . )

                  • A double dot ( .. )

                • Ambiguous file names will result in model deployment failure. For example, if your uncompressed ML model consists of two S3 objects s3://mybucket/model/weights and s3://mybucket/model/weights/part1 and you specify s3://mybucket/model/ as the value of S3Uri and S3Prefix as the value of S3DataType , then it will result in name clash between /opt/ml/model/weights (a regular file) and /opt/ml/model/weights/ (a directory).

                • Do not organize the model artifacts in S3 console using folders. When you create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker restrictions on model artifact file names, leading to model deployment failure.

              • ModelAccessConfig (dict) --

                Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig . You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.

                • AcceptEula (boolean) --

                  Specifies agreement to the model end-user license agreement (EULA). The AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.

              • HubAccessConfig (dict) --

                Configuration information for hub access.

                • HubContentArn (string) --

                  The ARN of the hub content for which deployment access is allowed.

          • ProductId (string) --

            The Amazon Web Services Marketplace product ID of the model package.

          • Environment (dict) --

            The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

            • (string) --

              • (string) --

          • ModelInput (dict) --

            A structure with Model Input details.

            • DataInputConfig (string) --

              The input configuration object for the model.

          • Framework (string) --

            The machine learning framework of the model package container image.

          • FrameworkVersion (string) --

            The framework version of the Model Package Container Image.

          • NearestModelName (string) --

            The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model. You can find a list of benchmarked models by calling ListModelMetadata .

          • AdditionalS3DataSource (dict) --

            The additional data source that is used during inference in the Docker container for your model package.

            • S3DataType (string) --

              The data type of the additional data source that you specify for use in inference or training.

            • S3Uri (string) --

              The uniform resource identifier (URI) used to identify an additional data source used in inference or training.

            • CompressionType (string) --

              The type of compression used for an additional data source used in inference or training. Specify None if your additional data source is not compressed.

      • SupportedTransformInstanceTypes (list) --

        A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.

        This parameter is required for unversioned models, and optional for versioned models.

        • (string) --

      • SupportedRealtimeInferenceInstanceTypes (list) --

        A list of the instance types that are used to generate inferences in real-time.

        This parameter is required for unversioned models, and optional for versioned models.

        • (string) --

      • SupportedContentTypes (list) --

        The supported MIME types for the input data.

        • (string) --

      • SupportedResponseMIMETypes (list) --

        The supported MIME types for the output data.

        • (string) --

    • ValidationSpecification (dict) --

      Details about configurations for one or more training jobs that SageMaker runs to test the algorithm.

      • ValidationRole (string) --

        The IAM roles that SageMaker uses to run the training jobs.

      • ValidationProfiles (list) --

        An array of AlgorithmValidationProfile objects, each of which specifies a training job and batch transform job that SageMaker runs to validate your algorithm.

        • (dict) --

          Defines a training job and a batch transform job that SageMaker runs to validate your algorithm.

          The data provided in the validation profile is made available to your buyers on Amazon Web Services Marketplace.

          • ProfileName (string) --

            The name of the profile for the algorithm. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

          • TrainingJobDefinition (dict) --

            The TrainingJobDefinition object that describes the training job that SageMaker runs to validate your algorithm.

            • TrainingInputMode (string) --

              The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

              Pipe mode

              If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

              File mode

              If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

              You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

              For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

              FastFile mode

              If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

              FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

            • HyperParameters (dict) --

              The hyperparameters used for the training job.

              • (string) --

                • (string) --

            • InputDataConfig (list) --

              An array of Channel objects, each of which specifies an input source.

              • (dict) --

                A channel is a named input source that training algorithms can consume.

                • ChannelName (string) --

                  The name of the channel.

                • DataSource (dict) --

                  The location of the channel data.

                  • S3DataSource (dict) --

                    The S3 location of the data source that is associated with a channel.

                    • S3DataType (string) --

                      If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

                      If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

                      If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

                    • S3Uri (string) --

                      Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

                      • A key name prefix might look like this: s3://bucketname/exampleprefix/

                      • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

                      Your input bucket must be located in same Amazon Web Services region as your training job.

                    • S3DataDistributionType (string) --

                      If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

                      If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

                      Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

                      In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

                    • AttributeNames (list) --

                      A list of one or more attribute names to use that are found in a specified augmented manifest file.

                      • (string) --

                    • InstanceGroupNames (list) --

                      A list of names of instance groups that get data from the S3 data source.

                      • (string) --

                  • FileSystemDataSource (dict) --

                    The file system that is associated with a channel.

                    • FileSystemId (string) --

                      The file system id.

                    • FileSystemAccessMode (string) --

                      The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

                    • FileSystemType (string) --

                      The file system type.

                    • DirectoryPath (string) --

                      The full path to the directory to associate with the channel.

                • ContentType (string) --

                  The MIME type of the data.

                • CompressionType (string) --

                  If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

                • RecordWrapperType (string) --

                  Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

                  In File mode, leave this field unset or set it to None.

                • InputMode (string) --

                  (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

                  To use a model for incremental training, choose File input model.

                • ShuffleConfig (dict) --

                  A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

                  For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

                  • Seed (integer) --

                    Determines the shuffling order in ShuffleConfig value.

            • OutputDataConfig (dict) --

              the path to the S3 bucket where you want to store model artifacts. SageMaker creates subfolders for the artifacts.

              • KmsKeyId (string) --

                The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

                • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

                • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

                • // KMS Key Alias "alias/ExampleAlias"

                • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

                If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

                The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

              • S3OutputPath (string) --

                Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

              • CompressionType (string) --

                The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

            • ResourceConfig (dict) --

              The resources, including the ML compute instances and ML storage volumes, to use for model training.

              • InstanceType (string) --

                The ML compute instance type.

                Note

                SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

                Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

                • US East (N. Virginia) (us-east-1)

                • US West (Oregon) (us-west-2)

                To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

              • InstanceCount (integer) --

                The number of ML compute instances to use. For distributed training, provide a value greater than 1.

              • VolumeSizeInGB (integer) --

                The size of the ML storage volume that you want to provision.

                ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

                When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

                When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

                To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

                To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

              • VolumeKmsKeyId (string) --

                The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

                Note

                Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

                For a list of instance types that support local instance storage, see Instance Store Volumes.

                For more information about local instance storage encryption, see SSD Instance Store Volumes.

                The VolumeKmsKeyId can be in any of the following formats:

                • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

                • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

              • KeepAlivePeriodInSeconds (integer) --

                The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

              • InstanceGroups (list) --

                The configuration of a heterogeneous cluster in JSON format.

                • (dict) --

                  Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

                  • InstanceType (string) --

                    Specifies the instance type of the instance group.

                  • InstanceCount (integer) --

                    Specifies the number of instances of the instance group.

                  • InstanceGroupName (string) --

                    Specifies the name of the instance group.

            • StoppingCondition (dict) --

              Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

              To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts.

              • MaxRuntimeInSeconds (integer) --

                The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

                For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

                For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

                The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

              • MaxWaitTimeInSeconds (integer) --

                The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

                When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

              • MaxPendingTimeInSeconds (integer) --

                The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

          • TransformJobDefinition (dict) --

            The TransformJobDefinition object that describes the transform job that SageMaker runs to validate your algorithm.

            • MaxConcurrentTransforms (integer) --

              The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1.

            • MaxPayloadInMB (integer) --

              The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata).

            • BatchStrategy (string) --

              A string that determines the number of records included in a single mini-batch.

              SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.

            • Environment (dict) --

              The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.

              • (string) --

                • (string) --

            • TransformInput (dict) --

              A description of the input source and the way the transform job consumes it.

              • DataSource (dict) --

                Describes the location of the channel data, which is, the S3 location of the input data that the model can consume.

                • S3DataSource (dict) --

                  The S3 location of the data source that is associated with a channel.

                  • S3DataType (string) --

                    If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for batch transform.

                    If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for batch transform.

                    The following values are compatible: ManifestFile , S3Prefix

                    The following value is not compatible: AugmentedManifestFile

                  • S3Uri (string) --

                    Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

                    • A key name prefix might look like this: s3://bucketname/exampleprefix/ .

                    • A manifest might look like this: s3://bucketname/example.manifest The manifest is an S3 object which is a JSON file with the following format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] The preceding JSON matches the following S3Uris : s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uris in this manifest constitutes the input data for the channel for this datasource. The object that each S3Uris points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

              • ContentType (string) --

                The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job.

              • CompressionType (string) --

                If your transform data is compressed, specify the compression type. Amazon SageMaker automatically decompresses the data for the transform job accordingly. The default value is None .

              • SplitType (string) --

                The method to use to split the transform job's data files into smaller batches. Splitting is necessary when the total size of each object is too large to fit in a single request. You can also use data splitting to improve performance by processing multiple concurrent mini-batches. The default value for SplitType is None , which indicates that input data files are not split, and request payloads contain the entire contents of an input object. Set the value of this parameter to Line to split records on a newline character boundary. SplitType also supports a number of record-oriented binary data formats. Currently, the supported record formats are:

                • RecordIO

                • TFRecord

                When splitting is enabled, the size of a mini-batch depends on the values of the BatchStrategy and MaxPayloadInMB parameters. When the value of BatchStrategy is MultiRecord , Amazon SageMaker sends the maximum number of records in each request, up to the MaxPayloadInMB limit. If the value of BatchStrategy is SingleRecord , Amazon SageMaker sends individual records in each request.

                Note

                Some data formats represent a record as a binary payload wrapped with extra padding bytes. When splitting is applied to a binary data format, padding is removed if the value of BatchStrategy is set to SingleRecord . Padding is not removed if the value of BatchStrategy is set to MultiRecord .

                For more information about RecordIO , see Create a Dataset Using RecordIO in the MXNet documentation. For more information about TFRecord , see Consuming TFRecord data in the TensorFlow documentation.

            • TransformOutput (dict) --

              Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

              • S3OutputPath (string) --

                The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. For example, s3://bucket-name/key-name-prefix .

                For every S3 object used as input for the transform job, batch transform stores the transformed data with an . out suffix in a corresponding subfolder in the location in the output prefix. For example, for the input data stored at s3://bucket-name/input-name-prefix/dataset01/data.csv , batch transform stores the transformed data at s3://bucket-name/output-name-prefix/input-name-prefix/data.csv.out . Batch transform doesn't upload partially processed objects. For an input S3 object that contains multiple records, it creates an . out file only if the transform job succeeds on the entire file. When the input contains multiple S3 objects, the batch transform job processes the listed S3 objects and uploads only the output for successfully processed objects. If any object fails in the transform job batch transform marks the job as failed to prompt investigation.

              • Accept (string) --

                The MIME type used to specify the output data. Amazon SageMaker uses the MIME type with each http call to transfer data from the transform job.

              • AssembleWith (string) --

                Defines how to assemble the results of the transform job as a single S3 object. Choose a format that is most convenient to you. To concatenate the results in binary format, specify None . To add a newline character at the end of every transformed record, specify Line .

              • KmsKeyId (string) --

                The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

                • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

                • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

                • Alias name: alias/ExampleAlias

                • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

                If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

                The KMS key policy must grant permission to the IAM role that you specify in your CreateModel request. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

            • TransformResources (dict) --

              Identifies the ML compute instances for the transform job.

              • InstanceType (string) --

                The ML compute instance type for the transform job. If you are using built-in algorithms to transform moderately sized datasets, we recommend using ml.m4.xlarge or ml.m5.large instance types.

              • InstanceCount (integer) --

                The number of ML compute instances to use in the transform job. The default value is 1 , and the maximum is 100 . For distributed transform jobs, specify a value greater than 1 .

              • VolumeKmsKeyId (string) --

                The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume attached to the ML compute instance(s) that run the batch transform job.

                Note

                Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

                For a list of instance types that support local instance storage, see Instance Store Volumes.

                For more information about local instance storage encryption, see SSD Instance Store Volumes.

                The VolumeKmsKeyId can be any of the following formats:

                • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

                • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

                • Alias name: alias/ExampleAlias

                • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

    • AlgorithmStatus (string) --

      The current status of the algorithm.

    • AlgorithmStatusDetails (dict) --

      Details about the current status of the algorithm.

      • ValidationStatuses (list) --

        The status of algorithm validation.

        • (dict) --

          Represents the overall status of an algorithm.

          • Name (string) --

            The name of the algorithm for which the overall status is being reported.

          • Status (string) --

            The current status.

          • FailureReason (string) --

            if the overall status is Failed , the reason for the failure.

      • ImageScanStatuses (list) --

        The status of the scan of the algorithm's Docker image container.

        • (dict) --

          Represents the overall status of an algorithm.

          • Name (string) --

            The name of the algorithm for which the overall status is being reported.

          • Status (string) --

            The current status.

          • FailureReason (string) --

            if the overall status is Failed , the reason for the failure.

    • ProductId (string) --

      The product identifier of the algorithm.

    • CertifyForMarketplace (boolean) --

      Whether the algorithm is certified to be listed in Amazon Web Services Marketplace.

DescribeDataQualityJobDefinition (updated) Link ¶
Changes (response)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Gets the details of a data quality monitoring job definition.

See also: AWS API Documentation

Request Syntax

client.describe_data_quality_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the data quality monitoring job definition to describe.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'DataQualityBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        },
        'StatisticsResource': {
            'S3Uri': 'string'
        }
    },
    'DataQualityAppSpecification': {
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    'DataQualityJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}
            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        }
    },
    'DataQualityJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the data quality monitoring job definition.

    • JobDefinitionName (string) --

      The name of the data quality monitoring job definition.

    • CreationTime (datetime) --

      The time that the data quality monitoring job definition was created.

    • DataQualityBaselineConfig (dict) --

      The constraints and baselines for the data quality monitoring job definition.

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the data quality monitoring job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

      • StatisticsResource (dict) --

        The statistics resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the statistics resource.

    • DataQualityAppSpecification (dict) --

      Information about the container that runs the data quality monitoring job.

      • ImageUri (string) --

        The container image that the data quality monitoring job runs.

      • ContainerEntrypoint (list) --

        The entrypoint for a container used to run a monitoring job.

        • (string) --

      • ContainerArguments (list) --

        The arguments to send to the container that the monitoring job runs.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

      • Environment (dict) --

        Sets the environment variables in the container that the monitoring job runs.

        • (string) --

          • (string) --

    • DataQualityJobInput (dict) --

      The list of inputs for the data quality monitoring job. Currently endpoints are supported.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

      • BatchTransformInput (dict) --

        Input object for the batch transform job.

        • DataCapturedDestinationS3Uri (string) --

          The Amazon S3 location being used to capture the data.

        • DatasetFormat (dict) --

          The dataset format for your batch transform job.

          • Csv (dict) --

            The CSV dataset used in the monitoring job.

            • Header (boolean) --

              Indicates if the CSV data has a header.

          • Json (dict) --

            The JSON dataset used in the monitoring job

            • Line (boolean) --

              Indicates if the file should be read as a JSON object per line.

          • Parquet (dict) --

            The Parquet dataset used in the monitoring job

        • LocalPath (string) --

          Path to the filesystem where the batch transform data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

    • DataQualityJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      The networking configuration for the data quality monitoring job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

    • StoppingCondition (dict) --

      A time limit for how long the monitoring job is allowed to run before stopping.

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

        Note

        The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

DescribeHyperParameterTuningJob (updated) Link ¶
Changes (response)
{'TrainingJobDefinition': {'HyperParameterTuningResourceConfig': {'InstanceConfigs': {'InstanceType': {'ml.r5.12xlarge',
                                                                                                       'ml.r5.16xlarge',
                                                                                                       'ml.r5.24xlarge',
                                                                                                       'ml.r5.2xlarge',
                                                                                                       'ml.r5.4xlarge',
                                                                                                       'ml.r5.8xlarge',
                                                                                                       'ml.r5.large',
                                                                                                       'ml.r5.xlarge',
                                                                                                       'ml.r5d.12xlarge',
                                                                                                       'ml.r5d.16xlarge',
                                                                                                       'ml.r5d.24xlarge',
                                                                                                       'ml.r5d.2xlarge',
                                                                                                       'ml.r5d.4xlarge',
                                                                                                       'ml.r5d.8xlarge',
                                                                                                       'ml.r5d.large',
                                                                                                       'ml.r5d.xlarge',
                                                                                                       'ml.t3.2xlarge',
                                                                                                       'ml.t3.large',
                                                                                                       'ml.t3.medium',
                                                                                                       'ml.t3.xlarge'}},
                                                                  'InstanceType': {'ml.r5.12xlarge',
                                                                                   'ml.r5.16xlarge',
                                                                                   'ml.r5.24xlarge',
                                                                                   'ml.r5.2xlarge',
                                                                                   'ml.r5.4xlarge',
                                                                                   'ml.r5.8xlarge',
                                                                                   'ml.r5.large',
                                                                                   'ml.r5.xlarge',
                                                                                   'ml.r5d.12xlarge',
                                                                                   'ml.r5d.16xlarge',
                                                                                   'ml.r5d.24xlarge',
                                                                                   'ml.r5d.2xlarge',
                                                                                   'ml.r5d.4xlarge',
                                                                                   'ml.r5d.8xlarge',
                                                                                   'ml.r5d.large',
                                                                                   'ml.r5d.xlarge',
                                                                                   'ml.t3.2xlarge',
                                                                                   'ml.t3.large',
                                                                                   'ml.t3.medium',
                                                                                   'ml.t3.xlarge'}},
                           'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                                                  'ml.r5.16xlarge',
                                                                                  'ml.r5.24xlarge',
                                                                                  'ml.r5.2xlarge',
                                                                                  'ml.r5.4xlarge',
                                                                                  'ml.r5.8xlarge',
                                                                                  'ml.r5.large',
                                                                                  'ml.r5.xlarge',
                                                                                  'ml.r5d.12xlarge',
                                                                                  'ml.r5d.16xlarge',
                                                                                  'ml.r5d.24xlarge',
                                                                                  'ml.r5d.2xlarge',
                                                                                  'ml.r5d.4xlarge',
                                                                                  'ml.r5d.8xlarge',
                                                                                  'ml.r5d.large',
                                                                                  'ml.r5d.xlarge',
                                                                                  'ml.t3.2xlarge',
                                                                                  'ml.t3.large',
                                                                                  'ml.t3.medium',
                                                                                  'ml.t3.xlarge'}},
                                              'InstanceType': {'ml.r5.12xlarge',
                                                               'ml.r5.16xlarge',
                                                               'ml.r5.24xlarge',
                                                               'ml.r5.2xlarge',
                                                               'ml.r5.4xlarge',
                                                               'ml.r5.8xlarge',
                                                               'ml.r5.large',
                                                               'ml.r5.xlarge',
                                                               'ml.r5d.12xlarge',
                                                               'ml.r5d.16xlarge',
                                                               'ml.r5d.24xlarge',
                                                               'ml.r5d.2xlarge',
                                                               'ml.r5d.4xlarge',
                                                               'ml.r5d.8xlarge',
                                                               'ml.r5d.large',
                                                               'ml.r5d.xlarge',
                                                               'ml.t3.2xlarge',
                                                               'ml.t3.large',
                                                               'ml.t3.medium',
                                                               'ml.t3.xlarge'}}},
 'TrainingJobDefinitions': {'HyperParameterTuningResourceConfig': {'InstanceConfigs': {'InstanceType': {'ml.r5.12xlarge',
                                                                                                        'ml.r5.16xlarge',
                                                                                                        'ml.r5.24xlarge',
                                                                                                        'ml.r5.2xlarge',
                                                                                                        'ml.r5.4xlarge',
                                                                                                        'ml.r5.8xlarge',
                                                                                                        'ml.r5.large',
                                                                                                        'ml.r5.xlarge',
                                                                                                        'ml.r5d.12xlarge',
                                                                                                        'ml.r5d.16xlarge',
                                                                                                        'ml.r5d.24xlarge',
                                                                                                        'ml.r5d.2xlarge',
                                                                                                        'ml.r5d.4xlarge',
                                                                                                        'ml.r5d.8xlarge',
                                                                                                        'ml.r5d.large',
                                                                                                        'ml.r5d.xlarge',
                                                                                                        'ml.t3.2xlarge',
                                                                                                        'ml.t3.large',
                                                                                                        'ml.t3.medium',
                                                                                                        'ml.t3.xlarge'}},
                                                                   'InstanceType': {'ml.r5.12xlarge',
                                                                                    'ml.r5.16xlarge',
                                                                                    'ml.r5.24xlarge',
                                                                                    'ml.r5.2xlarge',
                                                                                    'ml.r5.4xlarge',
                                                                                    'ml.r5.8xlarge',
                                                                                    'ml.r5.large',
                                                                                    'ml.r5.xlarge',
                                                                                    'ml.r5d.12xlarge',
                                                                                    'ml.r5d.16xlarge',
                                                                                    'ml.r5d.24xlarge',
                                                                                    'ml.r5d.2xlarge',
                                                                                    'ml.r5d.4xlarge',
                                                                                    'ml.r5d.8xlarge',
                                                                                    'ml.r5d.large',
                                                                                    'ml.r5d.xlarge',
                                                                                    'ml.t3.2xlarge',
                                                                                    'ml.t3.large',
                                                                                    'ml.t3.medium',
                                                                                    'ml.t3.xlarge'}},
                            'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                                                   'ml.r5.16xlarge',
                                                                                   'ml.r5.24xlarge',
                                                                                   'ml.r5.2xlarge',
                                                                                   'ml.r5.4xlarge',
                                                                                   'ml.r5.8xlarge',
                                                                                   'ml.r5.large',
                                                                                   'ml.r5.xlarge',
                                                                                   'ml.r5d.12xlarge',
                                                                                   'ml.r5d.16xlarge',
                                                                                   'ml.r5d.24xlarge',
                                                                                   'ml.r5d.2xlarge',
                                                                                   'ml.r5d.4xlarge',
                                                                                   'ml.r5d.8xlarge',
                                                                                   'ml.r5d.large',
                                                                                   'ml.r5d.xlarge',
                                                                                   'ml.t3.2xlarge',
                                                                                   'ml.t3.large',
                                                                                   'ml.t3.medium',
                                                                                   'ml.t3.xlarge'}},
                                               'InstanceType': {'ml.r5.12xlarge',
                                                                'ml.r5.16xlarge',
                                                                'ml.r5.24xlarge',
                                                                'ml.r5.2xlarge',
                                                                'ml.r5.4xlarge',
                                                                'ml.r5.8xlarge',
                                                                'ml.r5.large',
                                                                'ml.r5.xlarge',
                                                                'ml.r5d.12xlarge',
                                                                'ml.r5d.16xlarge',
                                                                'ml.r5d.24xlarge',
                                                                'ml.r5d.2xlarge',
                                                                'ml.r5d.4xlarge',
                                                                'ml.r5d.8xlarge',
                                                                'ml.r5d.large',
                                                                'ml.r5d.xlarge',
                                                                'ml.t3.2xlarge',
                                                                'ml.t3.large',
                                                                'ml.t3.medium',
                                                                'ml.t3.xlarge'}}}}

Returns a description of a hyperparameter tuning job, depending on the fields selected. These fields can include the name, Amazon Resource Name (ARN), job status of your tuning job and more.

See also: AWS API Documentation

Request Syntax

client.describe_hyper_parameter_tuning_job(
    HyperParameterTuningJobName='string'
)
type HyperParameterTuningJobName

string

param HyperParameterTuningJobName

[REQUIRED]

The name of the tuning job.

rtype

dict

returns

Response Syntax

{
    'HyperParameterTuningJobName': 'string',
    'HyperParameterTuningJobArn': 'string',
    'HyperParameterTuningJobConfig': {
        'Strategy': 'Bayesian'|'Random'|'Hyperband'|'Grid',
        'StrategyConfig': {
            'HyperbandStrategyConfig': {
                'MinResource': 123,
                'MaxResource': 123
            }
        },
        'HyperParameterTuningJobObjective': {
            'Type': 'Maximize'|'Minimize',
            'MetricName': 'string'
        },
        'ResourceLimits': {
            'MaxNumberOfTrainingJobs': 123,
            'MaxParallelTrainingJobs': 123,
            'MaxRuntimeInSeconds': 123
        },
        'ParameterRanges': {
            'IntegerParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'ContinuousParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'CategoricalParameterRanges': [
                {
                    'Name': 'string',
                    'Values': [
                        'string',
                    ]
                },
            ],
            'AutoParameters': [
                {
                    'Name': 'string',
                    'ValueHint': 'string'
                },
            ]
        },
        'TrainingJobEarlyStoppingType': 'Off'|'Auto',
        'TuningJobCompletionCriteria': {
            'TargetObjectiveMetricValue': ...,
            'BestObjectiveNotImproving': {
                'MaxNumberOfTrainingJobsNotImproving': 123
            },
            'ConvergenceDetected': {
                'CompleteOnConvergence': 'Disabled'|'Enabled'
            }
        },
        'RandomSeed': 123
    },
    'TrainingJobDefinition': {
        'DefinitionName': 'string',
        'TuningObjective': {
            'Type': 'Maximize'|'Minimize',
            'MetricName': 'string'
        },
        'HyperParameterRanges': {
            'IntegerParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'ContinuousParameterRanges': [
                {
                    'Name': 'string',
                    'MinValue': 'string',
                    'MaxValue': 'string',
                    'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                },
            ],
            'CategoricalParameterRanges': [
                {
                    'Name': 'string',
                    'Values': [
                        'string',
                    ]
                },
            ],
            'AutoParameters': [
                {
                    'Name': 'string',
                    'ValueHint': 'string'
                },
            ]
        },
        'StaticHyperParameters': {
            'string': 'string'
        },
        'AlgorithmSpecification': {
            'TrainingImage': 'string',
            'TrainingInputMode': 'Pipe'|'File'|'FastFile',
            'AlgorithmName': 'string',
            'MetricDefinitions': [
                {
                    'Name': 'string',
                    'Regex': 'string'
                },
            ]
        },
        'RoleArn': 'string',
        'InputDataConfig': [
            {
                'ChannelName': 'string',
                'DataSource': {
                    'S3DataSource': {
                        'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                        'S3Uri': 'string',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'AttributeNames': [
                            'string',
                        ],
                        'InstanceGroupNames': [
                            'string',
                        ]
                    },
                    'FileSystemDataSource': {
                        'FileSystemId': 'string',
                        'FileSystemAccessMode': 'rw'|'ro',
                        'FileSystemType': 'EFS'|'FSxLustre',
                        'DirectoryPath': 'string'
                    }
                },
                'ContentType': 'string',
                'CompressionType': 'None'|'Gzip',
                'RecordWrapperType': 'None'|'RecordIO',
                'InputMode': 'Pipe'|'File'|'FastFile',
                'ShuffleConfig': {
                    'Seed': 123
                }
            },
        ],
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        },
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3OutputPath': 'string',
            'CompressionType': 'GZIP'|'NONE'
        },
        'ResourceConfig': {
            'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'InstanceCount': 123,
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string',
            'KeepAlivePeriodInSeconds': 123,
            'InstanceGroups': [
                {
                    'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'InstanceCount': 123,
                    'InstanceGroupName': 'string'
                },
            ]
        },
        'HyperParameterTuningResourceConfig': {
            'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'InstanceCount': 123,
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string',
            'AllocationStrategy': 'Prioritized',
            'InstanceConfigs': [
                {
                    'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'InstanceCount': 123,
                    'VolumeSizeInGB': 123
                },
            ]
        },
        'StoppingCondition': {
            'MaxRuntimeInSeconds': 123,
            'MaxWaitTimeInSeconds': 123,
            'MaxPendingTimeInSeconds': 123
        },
        'EnableNetworkIsolation': True|False,
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableManagedSpotTraining': True|False,
        'CheckpointConfig': {
            'S3Uri': 'string',
            'LocalPath': 'string'
        },
        'RetryStrategy': {
            'MaximumRetryAttempts': 123
        },
        'Environment': {
            'string': 'string'
        }
    },
    'TrainingJobDefinitions': [
        {
            'DefinitionName': 'string',
            'TuningObjective': {
                'Type': 'Maximize'|'Minimize',
                'MetricName': 'string'
            },
            'HyperParameterRanges': {
                'IntegerParameterRanges': [
                    {
                        'Name': 'string',
                        'MinValue': 'string',
                        'MaxValue': 'string',
                        'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                    },
                ],
                'ContinuousParameterRanges': [
                    {
                        'Name': 'string',
                        'MinValue': 'string',
                        'MaxValue': 'string',
                        'ScalingType': 'Auto'|'Linear'|'Logarithmic'|'ReverseLogarithmic'
                    },
                ],
                'CategoricalParameterRanges': [
                    {
                        'Name': 'string',
                        'Values': [
                            'string',
                        ]
                    },
                ],
                'AutoParameters': [
                    {
                        'Name': 'string',
                        'ValueHint': 'string'
                    },
                ]
            },
            'StaticHyperParameters': {
                'string': 'string'
            },
            'AlgorithmSpecification': {
                'TrainingImage': 'string',
                'TrainingInputMode': 'Pipe'|'File'|'FastFile',
                'AlgorithmName': 'string',
                'MetricDefinitions': [
                    {
                        'Name': 'string',
                        'Regex': 'string'
                    },
                ]
            },
            'RoleArn': 'string',
            'InputDataConfig': [
                {
                    'ChannelName': 'string',
                    'DataSource': {
                        'S3DataSource': {
                            'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                            'S3Uri': 'string',
                            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                            'AttributeNames': [
                                'string',
                            ],
                            'InstanceGroupNames': [
                                'string',
                            ]
                        },
                        'FileSystemDataSource': {
                            'FileSystemId': 'string',
                            'FileSystemAccessMode': 'rw'|'ro',
                            'FileSystemType': 'EFS'|'FSxLustre',
                            'DirectoryPath': 'string'
                        }
                    },
                    'ContentType': 'string',
                    'CompressionType': 'None'|'Gzip',
                    'RecordWrapperType': 'None'|'RecordIO',
                    'InputMode': 'Pipe'|'File'|'FastFile',
                    'ShuffleConfig': {
                        'Seed': 123
                    }
                },
            ],
            'VpcConfig': {
                'SecurityGroupIds': [
                    'string',
                ],
                'Subnets': [
                    'string',
                ]
            },
            'OutputDataConfig': {
                'KmsKeyId': 'string',
                'S3OutputPath': 'string',
                'CompressionType': 'GZIP'|'NONE'
            },
            'ResourceConfig': {
                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                'InstanceCount': 123,
                'VolumeSizeInGB': 123,
                'VolumeKmsKeyId': 'string',
                'KeepAlivePeriodInSeconds': 123,
                'InstanceGroups': [
                    {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                        'InstanceCount': 123,
                        'InstanceGroupName': 'string'
                    },
                ]
            },
            'HyperParameterTuningResourceConfig': {
                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                'InstanceCount': 123,
                'VolumeSizeInGB': 123,
                'VolumeKmsKeyId': 'string',
                'AllocationStrategy': 'Prioritized',
                'InstanceConfigs': [
                    {
                        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                        'InstanceCount': 123,
                        'VolumeSizeInGB': 123
                    },
                ]
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123,
                'MaxWaitTimeInSeconds': 123,
                'MaxPendingTimeInSeconds': 123
            },
            'EnableNetworkIsolation': True|False,
            'EnableInterContainerTrafficEncryption': True|False,
            'EnableManagedSpotTraining': True|False,
            'CheckpointConfig': {
                'S3Uri': 'string',
                'LocalPath': 'string'
            },
            'RetryStrategy': {
                'MaximumRetryAttempts': 123
            },
            'Environment': {
                'string': 'string'
            }
        },
    ],
    'HyperParameterTuningJobStatus': 'Completed'|'InProgress'|'Failed'|'Stopped'|'Stopping'|'Deleting'|'DeleteFailed',
    'CreationTime': datetime(2015, 1, 1),
    'HyperParameterTuningEndTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'TrainingJobStatusCounters': {
        'Completed': 123,
        'InProgress': 123,
        'RetryableError': 123,
        'NonRetryableError': 123,
        'Stopped': 123
    },
    'ObjectiveStatusCounters': {
        'Succeeded': 123,
        'Pending': 123,
        'Failed': 123
    },
    'BestTrainingJob': {
        'TrainingJobDefinitionName': 'string',
        'TrainingJobName': 'string',
        'TrainingJobArn': 'string',
        'TuningJobName': 'string',
        'CreationTime': datetime(2015, 1, 1),
        'TrainingStartTime': datetime(2015, 1, 1),
        'TrainingEndTime': datetime(2015, 1, 1),
        'TrainingJobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
        'TunedHyperParameters': {
            'string': 'string'
        },
        'FailureReason': 'string',
        'FinalHyperParameterTuningJobObjectiveMetric': {
            'Type': 'Maximize'|'Minimize',
            'MetricName': 'string',
            'Value': ...
        },
        'ObjectiveStatus': 'Succeeded'|'Pending'|'Failed'
    },
    'OverallBestTrainingJob': {
        'TrainingJobDefinitionName': 'string',
        'TrainingJobName': 'string',
        'TrainingJobArn': 'string',
        'TuningJobName': 'string',
        'CreationTime': datetime(2015, 1, 1),
        'TrainingStartTime': datetime(2015, 1, 1),
        'TrainingEndTime': datetime(2015, 1, 1),
        'TrainingJobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
        'TunedHyperParameters': {
            'string': 'string'
        },
        'FailureReason': 'string',
        'FinalHyperParameterTuningJobObjectiveMetric': {
            'Type': 'Maximize'|'Minimize',
            'MetricName': 'string',
            'Value': ...
        },
        'ObjectiveStatus': 'Succeeded'|'Pending'|'Failed'
    },
    'WarmStartConfig': {
        'ParentHyperParameterTuningJobs': [
            {
                'HyperParameterTuningJobName': 'string'
            },
        ],
        'WarmStartType': 'IdenticalDataAndAlgorithm'|'TransferLearning'
    },
    'Autotune': {
        'Mode': 'Enabled'
    },
    'FailureReason': 'string',
    'TuningJobCompletionDetails': {
        'NumberOfTrainingJobsObjectiveNotImproving': 123,
        'ConvergenceDetectedTime': datetime(2015, 1, 1)
    },
    'ConsumedResources': {
        'RuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • HyperParameterTuningJobName (string) --

      The name of the hyperparameter tuning job.

    • HyperParameterTuningJobArn (string) --

      The Amazon Resource Name (ARN) of the tuning job.

    • HyperParameterTuningJobConfig (dict) --

      The HyperParameterTuningJobConfig object that specifies the configuration of the tuning job.

      • Strategy (string) --

        Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches. For information about search strategies, see How Hyperparameter Tuning Works.

      • StrategyConfig (dict) --

        The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig .

        • HyperbandStrategyConfig (dict) --

          The configuration for the object that specifies the Hyperband strategy. This parameter is only supported for the Hyperband selection for Strategy within the HyperParameterTuningJobConfig API.

          • MinResource (integer) --

            The minimum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter tuning job. If the value for MinResource has not been reached, the training job is not stopped by Hyperband .

          • MaxResource (integer) --

            The maximum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter tuning job. Once a job reaches the MaxResource value, it is stopped. If a value for MaxResource is not provided, and Hyperband is selected as the hyperparameter tuning strategy, HyperbandTraining attempts to infer MaxResource from the following keys (if present) in StaticsHyperParameters:

            • epochs

            • numepochs

            • n-epochs

            • n_epochs

            • num_epochs

            If HyperbandStrategyConfig is unable to infer a value for MaxResource , it generates a validation error. The maximum value is 20,000 epochs. All metrics that correspond to an objective metric are used to derive early stopping decisions. For distributed training jobs, ensure that duplicate metrics are not printed in the logs across the individual nodes in a training job. If multiple nodes are publishing duplicate or incorrect metrics, training jobs may make an incorrect stopping decision and stop the job prematurely.

      • HyperParameterTuningJobObjective (dict) --

        The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.

        • Type (string) --

          Whether to minimize or maximize the objective metric.

        • MetricName (string) --

          The name of the metric to use for the objective metric.

      • ResourceLimits (dict) --

        The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.

        • MaxNumberOfTrainingJobs (integer) --

          The maximum number of training jobs that a hyperparameter tuning job can launch.

        • MaxParallelTrainingJobs (integer) --

          The maximum number of concurrent training jobs that a hyperparameter tuning job can launch.

        • MaxRuntimeInSeconds (integer) --

          The maximum time in seconds that a hyperparameter tuning job can run.

      • ParameterRanges (dict) --

        The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.

        • IntegerParameterRanges (list) --

          The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

          • (dict) --

            For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

            • Name (string) --

              The name of the hyperparameter to search.

            • MinValue (string) --

              The minimum value of the hyperparameter to search.

            • MaxValue (string) --

              The maximum value of the hyperparameter to search.

            • ScalingType (string) --

              The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

              Auto

              SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

              Linear

              Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

              Logarithmic

              Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

              Logarithmic scaling works only for ranges that have only values greater than 0.

        • ContinuousParameterRanges (list) --

          The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

          • (dict) --

            A list of continuous hyperparameters to tune.

            • Name (string) --

              The name of the continuous hyperparameter to tune.

            • MinValue (string) --

              The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValue for tuning.

            • MaxValue (string) --

              The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

            • ScalingType (string) --

              The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

              Auto

              SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

              Linear

              Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

              Logarithmic

              Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

              Logarithmic scaling works only for ranges that have only values greater than 0.

              ReverseLogarithmic

              Hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.

              Reverse logarithmic scaling works only for ranges that are entirely within the range 0<=x<1.0.

        • CategoricalParameterRanges (list) --

          The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

          • (dict) --

            A list of categorical hyperparameters to tune.

            • Name (string) --

              The name of the categorical hyperparameter to tune.

            • Values (list) --

              A list of the categories for the hyperparameter.

              • (string) --

        • AutoParameters (list) --

          A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for your tuning job.

          • (dict) --

            The name and an example value of the hyperparameter that you want to use in Autotune. If Automatic model tuning (AMT) determines that your hyperparameter is eligible for Autotune, an optimal hyperparameter range is selected for you.

            • Name (string) --

              The name of the hyperparameter to optimize using Autotune.

            • ValueHint (string) --

              An example value of the hyperparameter to optimize using Autotune.

      • TrainingJobEarlyStoppingType (string) --

        Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband . This parameter can take on one of the following values (the default value is OFF ):

        OFF

        Training jobs launched by the hyperparameter tuning job do not use early stopping.

        AUTO

        SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

      • TuningJobCompletionCriteria (dict) --

        The tuning job's completion criteria.

        • TargetObjectiveMetricValue (float) --

          The value of the objective metric.

        • BestObjectiveNotImproving (dict) --

          A flag to stop your hyperparameter tuning job if model performance fails to improve as evaluated against an objective function.

          • MaxNumberOfTrainingJobsNotImproving (integer) --

            The number of training jobs that have failed to improve model performance by 1% or greater over prior training jobs as evaluated against an objective function.

        • ConvergenceDetected (dict) --

          A flag to top your hyperparameter tuning job if automatic model tuning (AMT) has detected that your model has converged as evaluated against your objective function.

          • CompleteOnConvergence (string) --

            A flag to stop a tuning job once AMT has detected that the job has converged.

      • RandomSeed (integer) --

        A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.

    • TrainingJobDefinition (dict) --

      The HyperParameterTrainingJobDefinition object that specifies the definition of the training jobs that this tuning job launches.

      • DefinitionName (string) --

        The job definition name.

      • TuningObjective (dict) --

        Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter. If you want to define a custom objective metric, see Define metrics and environment variables.

        • Type (string) --

          Whether to minimize or maximize the objective metric.

        • MetricName (string) --

          The name of the metric to use for the objective metric.

      • HyperParameterRanges (dict) --

        Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.

        Note

        The maximum number of items specified for Array Members refers to the maximum number of hyperparameters for each range and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of hyperparameters for all the ranges can't exceed the maximum number specified.

        • IntegerParameterRanges (list) --

          The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

          • (dict) --

            For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

            • Name (string) --

              The name of the hyperparameter to search.

            • MinValue (string) --

              The minimum value of the hyperparameter to search.

            • MaxValue (string) --

              The maximum value of the hyperparameter to search.

            • ScalingType (string) --

              The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

              Auto

              SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

              Linear

              Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

              Logarithmic

              Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

              Logarithmic scaling works only for ranges that have only values greater than 0.

        • ContinuousParameterRanges (list) --

          The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

          • (dict) --

            A list of continuous hyperparameters to tune.

            • Name (string) --

              The name of the continuous hyperparameter to tune.

            • MinValue (string) --

              The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValue for tuning.

            • MaxValue (string) --

              The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

            • ScalingType (string) --

              The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

              Auto

              SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

              Linear

              Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

              Logarithmic

              Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

              Logarithmic scaling works only for ranges that have only values greater than 0.

              ReverseLogarithmic

              Hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.

              Reverse logarithmic scaling works only for ranges that are entirely within the range 0<=x<1.0.

        • CategoricalParameterRanges (list) --

          The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

          • (dict) --

            A list of categorical hyperparameters to tune.

            • Name (string) --

              The name of the categorical hyperparameter to tune.

            • Values (list) --

              A list of the categories for the hyperparameter.

              • (string) --

        • AutoParameters (list) --

          A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for your tuning job.

          • (dict) --

            The name and an example value of the hyperparameter that you want to use in Autotune. If Automatic model tuning (AMT) determines that your hyperparameter is eligible for Autotune, an optimal hyperparameter range is selected for you.

            • Name (string) --

              The name of the hyperparameter to optimize using Autotune.

            • ValueHint (string) --

              An example value of the hyperparameter to optimize using Autotune.

      • StaticHyperParameters (dict) --

        Specifies the values of hyperparameters that do not change for the tuning job.

        • (string) --

          • (string) --

      • AlgorithmSpecification (dict) --

        The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

        • TrainingImage (string) --

          The registry path of the Docker image that contains the training algorithm. For information about Docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

        • TrainingInputMode (string) --

          The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

          Pipe mode

          If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

          File mode

          If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

          You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

          For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

          FastFile mode

          If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

          FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

        • AlgorithmName (string) --

          The name of the resource algorithm to use for the hyperparameter tuning job. If you specify a value for this parameter, do not specify a value for TrainingImage .

        • MetricDefinitions (list) --

          An array of MetricDefinition objects that specify the metrics that the algorithm emits.

          • (dict) --

            Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

            • Name (string) --

              The name of the metric.

            • Regex (string) --

              A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

      • RoleArn (string) --

        The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

      • InputDataConfig (list) --

        An array of Channel objects that specify the input for the training jobs that the tuning job launches.

        • (dict) --

          A channel is a named input source that training algorithms can consume.

          • ChannelName (string) --

            The name of the channel.

          • DataSource (dict) --

            The location of the channel data.

            • S3DataSource (dict) --

              The S3 location of the data source that is associated with a channel.

              • S3DataType (string) --

                If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

                If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

                If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

              • S3Uri (string) --

                Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

                • A key name prefix might look like this: s3://bucketname/exampleprefix/

                • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

                Your input bucket must be located in same Amazon Web Services region as your training job.

              • S3DataDistributionType (string) --

                If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

                If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

                Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

                In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

              • AttributeNames (list) --

                A list of one or more attribute names to use that are found in a specified augmented manifest file.

                • (string) --

              • InstanceGroupNames (list) --

                A list of names of instance groups that get data from the S3 data source.

                • (string) --

            • FileSystemDataSource (dict) --

              The file system that is associated with a channel.

              • FileSystemId (string) --

                The file system id.

              • FileSystemAccessMode (string) --

                The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

              • FileSystemType (string) --

                The file system type.

              • DirectoryPath (string) --

                The full path to the directory to associate with the channel.

          • ContentType (string) --

            The MIME type of the data.

          • CompressionType (string) --

            If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

          • RecordWrapperType (string) --

            Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

            In File mode, leave this field unset or set it to None.

          • InputMode (string) --

            (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

            To use a model for incremental training, choose File input model.

          • ShuffleConfig (dict) --

            A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

            For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

            • Seed (integer) --

              Determines the shuffling order in ShuffleConfig value.

      • VpcConfig (dict) --

        The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

      • OutputDataConfig (dict) --

        Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

        • KmsKeyId (string) --

          The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

          • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

          • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

          • // KMS Key Alias "alias/ExampleAlias"

          • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

          If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

          The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

        • S3OutputPath (string) --

          Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

        • CompressionType (string) --

          The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

      • ResourceConfig (dict) --

        The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

        Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

        Note

        If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

        • InstanceType (string) --

          The ML compute instance type.

          Note

          SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

          Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

          • US East (N. Virginia) (us-east-1)

          • US West (Oregon) (us-west-2)

          To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

        • InstanceCount (integer) --

          The number of ML compute instances to use. For distributed training, provide a value greater than 1.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume that you want to provision.

          ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

          When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

          When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

          To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

          To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

        • VolumeKmsKeyId (string) --

          The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

          Note

          Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

          For a list of instance types that support local instance storage, see Instance Store Volumes.

          For more information about local instance storage encryption, see SSD Instance Store Volumes.

          The VolumeKmsKeyId can be in any of the following formats:

          • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

          • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

        • KeepAlivePeriodInSeconds (integer) --

          The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

        • InstanceGroups (list) --

          The configuration of a heterogeneous cluster in JSON format.

          • (dict) --

            Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

            • InstanceType (string) --

              Specifies the instance type of the instance group.

            • InstanceCount (integer) --

              Specifies the number of instances of the instance group.

            • InstanceGroupName (string) --

              Specifies the name of the instance group.

      • HyperParameterTuningResourceConfig (dict) --

        The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

        • InstanceType (string) --

          The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance types for more information.

        • InstanceCount (integer) --

          The number of compute instances of type InstanceType to use. For distributed training, select a value greater than 1.

        • VolumeSizeInGB (integer) --

          The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs (optional). These volumes store model artifacts, incremental states and optionally, scratch space for training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is also specified.

          Some instance types have a fixed total local storage size. If you select one of these instances for training, VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local instance storage and their sizes, see instance store volumes.

          Note

          SageMaker supports only the General Purpose SSD (gp2) storage volume type.

        • VolumeKmsKeyId (string) --

          A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.

          KMS Key ID:

          "1234abcd-12ab-34cd-56ef-1234567890ab"

          Amazon Resource Name (ARN) of a KMS key:

          "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

          Some instances use local storage, which use a hardware module to encrypt storage volumes. If you choose one of these instance types, you cannot request a VolumeKmsKeyId . For a list of instance types that use local storage, see instance store volumes. For more information about Amazon Web Services Key Management Service, see KMS encryption for more information.

        • AllocationStrategy (string) --

          The strategy that determines the order of preference for resources specified in InstanceConfigs used in hyperparameter optimization.

        • InstanceConfigs (list) --

          A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These resources include compute instances and storage volumes to use in model training jobs launched by hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple configurations provided in InstanceConfigs are used.

          Note

          If you only want to use a single instance configuration inside the HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs . Instead, use InstanceType , VolumeSizeInGB and InstanceCount . If you use InstanceConfigs , do not provide values for InstanceType , VolumeSizeInGB or InstanceCount .

          • (dict) --

            The configuration for hyperparameter tuning resources for use in training jobs launched by the tuning job. These resources include compute instances and storage volumes. Specify one or more compute instance configurations and allocation strategies to select resources (optional).

            • InstanceType (string) --

              The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.

            • InstanceCount (integer) --

              The number of instances of the type specified by InstanceType . Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.

            • VolumeSizeInGB (integer) --

              The volume size in GB of the data to be processed for hyperparameter optimization (optional).

      • StoppingCondition (dict) --

        Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

        • MaxRuntimeInSeconds (integer) --

          The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

          For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

          For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

          The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

        • MaxWaitTimeInSeconds (integer) --

          The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

          When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

        • MaxPendingTimeInSeconds (integer) --

          The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

      • EnableNetworkIsolation (boolean) --

        Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

      • EnableInterContainerTrafficEncryption (boolean) --

        To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

      • EnableManagedSpotTraining (boolean) --

        A Boolean indicating whether managed spot training is enabled ( True ) or not ( False ).

      • CheckpointConfig (dict) --

        Contains information about the output location for managed spot training checkpoint data.

        • S3Uri (string) --

          Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

        • LocalPath (string) --

          (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

      • RetryStrategy (dict) --

        The number of times to retry the job when the job fails due to an InternalServerError .

        • MaximumRetryAttempts (integer) --

          The number of times to retry the job. When the job is retried, it's SecondaryStatus is changed to STARTING .

      • Environment (dict) --

        An environment variable that you can pass into the SageMaker CreateTrainingJob API. You can use an existing environment variable from the training container or use your own. See Define metrics and variables for more information.

        Note

        The maximum number of items specified for Map Entries refers to the maximum number of environment variables for each TrainingJobDefinition and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of environment variables for all the training job definitions can't exceed the maximum number specified.

        • (string) --

          • (string) --

    • TrainingJobDefinitions (list) --

      A list of the HyperParameterTrainingJobDefinition objects launched for this tuning job.

      • (dict) --

        Defines the training jobs launched by a hyperparameter tuning job.

        • DefinitionName (string) --

          The job definition name.

        • TuningObjective (dict) --

          Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter. If you want to define a custom objective metric, see Define metrics and environment variables.

          • Type (string) --

            Whether to minimize or maximize the objective metric.

          • MetricName (string) --

            The name of the metric to use for the objective metric.

        • HyperParameterRanges (dict) --

          Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.

          Note

          The maximum number of items specified for Array Members refers to the maximum number of hyperparameters for each range and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of hyperparameters for all the ranges can't exceed the maximum number specified.

          • IntegerParameterRanges (list) --

            The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

            • (dict) --

              For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

              • Name (string) --

                The name of the hyperparameter to search.

              • MinValue (string) --

                The minimum value of the hyperparameter to search.

              • MaxValue (string) --

                The maximum value of the hyperparameter to search.

              • ScalingType (string) --

                The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

                Auto

                SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

                Linear

                Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

                Logarithmic

                Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

                Logarithmic scaling works only for ranges that have only values greater than 0.

          • ContinuousParameterRanges (list) --

            The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

            • (dict) --

              A list of continuous hyperparameters to tune.

              • Name (string) --

                The name of the continuous hyperparameter to tune.

              • MinValue (string) --

                The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValue for tuning.

              • MaxValue (string) --

                The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

              • ScalingType (string) --

                The scale that hyperparameter tuning uses to search the hyperparameter range. For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:

                Auto

                SageMaker hyperparameter tuning chooses the best scale for the hyperparameter.

                Linear

                Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.

                Logarithmic

                Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.

                Logarithmic scaling works only for ranges that have only values greater than 0.

                ReverseLogarithmic

                Hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.

                Reverse logarithmic scaling works only for ranges that are entirely within the range 0<=x<1.0.

          • CategoricalParameterRanges (list) --

            The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

            • (dict) --

              A list of categorical hyperparameters to tune.

              • Name (string) --

                The name of the categorical hyperparameter to tune.

              • Values (list) --

                A list of the categories for the hyperparameter.

                • (string) --

          • AutoParameters (list) --

            A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for your tuning job.

            • (dict) --

              The name and an example value of the hyperparameter that you want to use in Autotune. If Automatic model tuning (AMT) determines that your hyperparameter is eligible for Autotune, an optimal hyperparameter range is selected for you.

              • Name (string) --

                The name of the hyperparameter to optimize using Autotune.

              • ValueHint (string) --

                An example value of the hyperparameter to optimize using Autotune.

        • StaticHyperParameters (dict) --

          Specifies the values of hyperparameters that do not change for the tuning job.

          • (string) --

            • (string) --

        • AlgorithmSpecification (dict) --

          The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.

          • TrainingImage (string) --

            The registry path of the Docker image that contains the training algorithm. For information about Docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

          • TrainingInputMode (string) --

            The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

            Pipe mode

            If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

            File mode

            If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

            You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

            For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

            FastFile mode

            If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

            FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

          • AlgorithmName (string) --

            The name of the resource algorithm to use for the hyperparameter tuning job. If you specify a value for this parameter, do not specify a value for TrainingImage .

          • MetricDefinitions (list) --

            An array of MetricDefinition objects that specify the metrics that the algorithm emits.

            • (dict) --

              Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

              • Name (string) --

                The name of the metric.

              • Regex (string) --

                A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

        • InputDataConfig (list) --

          An array of Channel objects that specify the input for the training jobs that the tuning job launches.

          • (dict) --

            A channel is a named input source that training algorithms can consume.

            • ChannelName (string) --

              The name of the channel.

            • DataSource (dict) --

              The location of the channel data.

              • S3DataSource (dict) --

                The S3 location of the data source that is associated with a channel.

                • S3DataType (string) --

                  If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

                  If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

                  If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

                • S3Uri (string) --

                  Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

                  • A key name prefix might look like this: s3://bucketname/exampleprefix/

                  • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

                  Your input bucket must be located in same Amazon Web Services region as your training job.

                • S3DataDistributionType (string) --

                  If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

                  If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

                  Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

                  In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

                • AttributeNames (list) --

                  A list of one or more attribute names to use that are found in a specified augmented manifest file.

                  • (string) --

                • InstanceGroupNames (list) --

                  A list of names of instance groups that get data from the S3 data source.

                  • (string) --

              • FileSystemDataSource (dict) --

                The file system that is associated with a channel.

                • FileSystemId (string) --

                  The file system id.

                • FileSystemAccessMode (string) --

                  The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

                • FileSystemType (string) --

                  The file system type.

                • DirectoryPath (string) --

                  The full path to the directory to associate with the channel.

            • ContentType (string) --

              The MIME type of the data.

            • CompressionType (string) --

              If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

            • RecordWrapperType (string) --

              Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

              In File mode, leave this field unset or set it to None.

            • InputMode (string) --

              (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

              To use a model for incremental training, choose File input model.

            • ShuffleConfig (dict) --

              A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

              For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

              • Seed (integer) --

                Determines the shuffling order in ShuffleConfig value.

        • VpcConfig (dict) --

          The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

          • SecurityGroupIds (list) --

            The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

            • (string) --

          • Subnets (list) --

            The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

            • (string) --

        • OutputDataConfig (dict) --

          Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

          • KmsKeyId (string) --

            The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

            • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

            • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

            • // KMS Key Alias "alias/ExampleAlias"

            • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

            If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

            The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

          • S3OutputPath (string) --

            Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

          • CompressionType (string) --

            The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

        • ResourceConfig (dict) --

          The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

          Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

          Note

          If you want to use hyperparameter optimization with instance type flexibility, use HyperParameterTuningResourceConfig instead.

          • InstanceType (string) --

            The ML compute instance type.

            Note

            SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

            Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

            • US East (N. Virginia) (us-east-1)

            • US West (Oregon) (us-west-2)

            To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

          • InstanceCount (integer) --

            The number of ML compute instances to use. For distributed training, provide a value greater than 1.

          • VolumeSizeInGB (integer) --

            The size of the ML storage volume that you want to provision.

            ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

            When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

            When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

            To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

            To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

          • VolumeKmsKeyId (string) --

            The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

            Note

            Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

            For a list of instance types that support local instance storage, see Instance Store Volumes.

            For more information about local instance storage encryption, see SSD Instance Store Volumes.

            The VolumeKmsKeyId can be in any of the following formats:

            • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

            • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

          • KeepAlivePeriodInSeconds (integer) --

            The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

          • InstanceGroups (list) --

            The configuration of a heterogeneous cluster in JSON format.

            • (dict) --

              Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

              • InstanceType (string) --

                Specifies the instance type of the instance group.

              • InstanceCount (integer) --

                Specifies the number of instances of the instance group.

              • InstanceGroupName (string) --

                Specifies the name of the instance group.

        • HyperParameterTuningResourceConfig (dict) --

          The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

          • InstanceType (string) --

            The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance types for more information.

          • InstanceCount (integer) --

            The number of compute instances of type InstanceType to use. For distributed training, select a value greater than 1.

          • VolumeSizeInGB (integer) --

            The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs (optional). These volumes store model artifacts, incremental states and optionally, scratch space for training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is also specified.

            Some instance types have a fixed total local storage size. If you select one of these instances for training, VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local instance storage and their sizes, see instance store volumes.

            Note

            SageMaker supports only the General Purpose SSD (gp2) storage volume type.

          • VolumeKmsKeyId (string) --

            A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.

            KMS Key ID:

            "1234abcd-12ab-34cd-56ef-1234567890ab"

            Amazon Resource Name (ARN) of a KMS key:

            "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

            Some instances use local storage, which use a hardware module to encrypt storage volumes. If you choose one of these instance types, you cannot request a VolumeKmsKeyId . For a list of instance types that use local storage, see instance store volumes. For more information about Amazon Web Services Key Management Service, see KMS encryption for more information.

          • AllocationStrategy (string) --

            The strategy that determines the order of preference for resources specified in InstanceConfigs used in hyperparameter optimization.

          • InstanceConfigs (list) --

            A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These resources include compute instances and storage volumes to use in model training jobs launched by hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple configurations provided in InstanceConfigs are used.

            Note

            If you only want to use a single instance configuration inside the HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs . Instead, use InstanceType , VolumeSizeInGB and InstanceCount . If you use InstanceConfigs , do not provide values for InstanceType , VolumeSizeInGB or InstanceCount .

            • (dict) --

              The configuration for hyperparameter tuning resources for use in training jobs launched by the tuning job. These resources include compute instances and storage volumes. Specify one or more compute instance configurations and allocation strategies to select resources (optional).

              • InstanceType (string) --

                The instance type used for processing of hyperparameter optimization jobs. Choose from general purpose (no GPUs) instance types: ml.m5.xlarge, ml.m5.2xlarge, and ml.m5.4xlarge or compute optimized (no GPUs) instance types: ml.c5.xlarge and ml.c5.2xlarge. For more information about instance types, see instance type descriptions.

              • InstanceCount (integer) --

                The number of instances of the type specified by InstanceType . Choose an instance count larger than 1 for distributed training algorithms. See Step 2: Launch a SageMaker Distributed Training Job Using the SageMaker Python SDK for more information.

              • VolumeSizeInGB (integer) --

                The volume size in GB of the data to be processed for hyperparameter optimization (optional).

        • StoppingCondition (dict) --

          Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

          • MaxRuntimeInSeconds (integer) --

            The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

            For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

            For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

            The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

          • MaxWaitTimeInSeconds (integer) --

            The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

            When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

          • MaxPendingTimeInSeconds (integer) --

            The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

        • EnableNetworkIsolation (boolean) --

          Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

        • EnableInterContainerTrafficEncryption (boolean) --

          To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.

        • EnableManagedSpotTraining (boolean) --

          A Boolean indicating whether managed spot training is enabled ( True ) or not ( False ).

        • CheckpointConfig (dict) --

          Contains information about the output location for managed spot training checkpoint data.

          • S3Uri (string) --

            Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

          • LocalPath (string) --

            (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

        • RetryStrategy (dict) --

          The number of times to retry the job when the job fails due to an InternalServerError .

          • MaximumRetryAttempts (integer) --

            The number of times to retry the job. When the job is retried, it's SecondaryStatus is changed to STARTING .

        • Environment (dict) --

          An environment variable that you can pass into the SageMaker CreateTrainingJob API. You can use an existing environment variable from the training container or use your own. See Define metrics and variables for more information.

          Note

          The maximum number of items specified for Map Entries refers to the maximum number of environment variables for each TrainingJobDefinition and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of environment variables for all the training job definitions can't exceed the maximum number specified.

          • (string) --

            • (string) --

    • HyperParameterTuningJobStatus (string) --

      The status of the tuning job.

    • CreationTime (datetime) --

      The date and time that the tuning job started.

    • HyperParameterTuningEndTime (datetime) --

      The date and time that the tuning job ended.

    • LastModifiedTime (datetime) --

      The date and time that the status of the tuning job was modified.

    • TrainingJobStatusCounters (dict) --

      The TrainingJobStatusCounters object that specifies the number of training jobs, categorized by status, that this tuning job launched.

      • Completed (integer) --

        The number of completed training jobs launched by the hyperparameter tuning job.

      • InProgress (integer) --

        The number of in-progress training jobs launched by a hyperparameter tuning job.

      • RetryableError (integer) --

        The number of training jobs that failed, but can be retried. A failed training job can be retried only if it failed because an internal service error occurred.

      • NonRetryableError (integer) --

        The number of training jobs that failed and can't be retried. A failed training job can't be retried if it failed because a client error occurred.

      • Stopped (integer) --

        The number of training jobs launched by a hyperparameter tuning job that were manually stopped.

    • ObjectiveStatusCounters (dict) --

      The ObjectiveStatusCounters object that specifies the number of training jobs, categorized by the status of their final objective metric, that this tuning job launched.

      • Succeeded (integer) --

        The number of training jobs whose final objective metric was evaluated by the hyperparameter tuning job and used in the hyperparameter tuning process.

      • Pending (integer) --

        The number of training jobs that are in progress and pending evaluation of their final objective metric.

      • Failed (integer) --

        The number of training jobs whose final objective metric was not evaluated and used in the hyperparameter tuning process. This typically occurs when the training job failed or did not emit an objective metric.

    • BestTrainingJob (dict) --

      A TrainingJobSummary object that describes the training job that completed with the best current HyperParameterTuningJobObjective.

      • TrainingJobDefinitionName (string) --

        The training job definition name.

      • TrainingJobName (string) --

        The name of the training job.

      • TrainingJobArn (string) --

        The Amazon Resource Name (ARN) of the training job.

      • TuningJobName (string) --

        The HyperParameter tuning job that launched the training job.

      • CreationTime (datetime) --

        The date and time that the training job was created.

      • TrainingStartTime (datetime) --

        The date and time that the training job started.

      • TrainingEndTime (datetime) --

        Specifies the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when SageMaker detects a job failure.

      • TrainingJobStatus (string) --

        The status of the training job.

      • TunedHyperParameters (dict) --

        A list of the hyperparameters for which you specified ranges to search.

        • (string) --

          • (string) --

      • FailureReason (string) --

        The reason that the training job failed.

      • FinalHyperParameterTuningJobObjectiveMetric (dict) --

        The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the tuning job that launched this training job.

        • Type (string) --

          Select if you want to minimize or maximize the objective metric during hyperparameter tuning.

        • MetricName (string) --

          The name of the objective metric. For SageMaker built-in algorithms, metrics are defined per algorithm. See the metrics for XGBoost as an example. You can also use a custom algorithm for training and define your own metrics. For more information, see Define metrics and environment variables.

        • Value (float) --

          The value of the objective metric.

      • ObjectiveStatus (string) --

        The status of the objective metric for the training job:

        • Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and used in the hyperparameter tuning process.

        • Pending: The training job is in progress and evaluation of its final objective metric is pending.

        • Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter tuning process. This typically occurs when the training job failed or did not emit an objective metric.

    • OverallBestTrainingJob (dict) --

      If the hyperparameter tuning job is an warm start tuning job with a WarmStartType of IDENTICAL_DATA_AND_ALGORITHM , this is the TrainingJobSummary for the training job with the best objective metric value of all training jobs launched by this tuning job and all parent jobs specified for the warm start tuning job.

      • TrainingJobDefinitionName (string) --

        The training job definition name.

      • TrainingJobName (string) --

        The name of the training job.

      • TrainingJobArn (string) --

        The Amazon Resource Name (ARN) of the training job.

      • TuningJobName (string) --

        The HyperParameter tuning job that launched the training job.

      • CreationTime (datetime) --

        The date and time that the training job was created.

      • TrainingStartTime (datetime) --

        The date and time that the training job started.

      • TrainingEndTime (datetime) --

        Specifies the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when SageMaker detects a job failure.

      • TrainingJobStatus (string) --

        The status of the training job.

      • TunedHyperParameters (dict) --

        A list of the hyperparameters for which you specified ranges to search.

        • (string) --

          • (string) --

      • FailureReason (string) --

        The reason that the training job failed.

      • FinalHyperParameterTuningJobObjectiveMetric (dict) --

        The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the tuning job that launched this training job.

        • Type (string) --

          Select if you want to minimize or maximize the objective metric during hyperparameter tuning.

        • MetricName (string) --

          The name of the objective metric. For SageMaker built-in algorithms, metrics are defined per algorithm. See the metrics for XGBoost as an example. You can also use a custom algorithm for training and define your own metrics. For more information, see Define metrics and environment variables.

        • Value (float) --

          The value of the objective metric.

      • ObjectiveStatus (string) --

        The status of the objective metric for the training job:

        • Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and used in the hyperparameter tuning process.

        • Pending: The training job is in progress and evaluation of its final objective metric is pending.

        • Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter tuning process. This typically occurs when the training job failed or did not emit an objective metric.

    • WarmStartConfig (dict) --

      The configuration for starting the hyperparameter parameter tuning job using one or more previous tuning jobs as a starting point. The results of previous tuning jobs are used to inform which combinations of hyperparameters to search over in the new tuning job.

      • ParentHyperParameterTuningJobs (list) --

        An array of hyperparameter tuning jobs that are used as the starting point for the new hyperparameter tuning job. For more information about warm starting a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job as a Starting Point.

        Hyperparameter tuning jobs created before October 1, 2018 cannot be used as parent jobs for warm start tuning jobs.

        • (dict) --

          A previously completed or stopped hyperparameter tuning job to be used as a starting point for a new hyperparameter tuning job.

          • HyperParameterTuningJobName (string) --

            The name of the hyperparameter tuning job to be used as a starting point for a new hyperparameter tuning job.

      • WarmStartType (string) --

        Specifies one of the following:

        IDENTICAL_DATA_AND_ALGORITHM

        The new hyperparameter tuning job uses the same input data and training image as the parent tuning jobs. You can change the hyperparameter ranges to search and the maximum number of training jobs that the hyperparameter tuning job launches. You cannot use a new version of the training algorithm, unless the changes in the new version do not affect the algorithm itself. For example, changes that improve logging or adding support for a different data format are allowed. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

        TRANSFER_LEARNING

        The new hyperparameter tuning job can include input data, hyperparameter ranges, maximum number of concurrent training jobs, and maximum number of training jobs that are different than those of its parent hyperparameter tuning jobs. The training image can also be a different version from the version used in the parent hyperparameter tuning job. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

    • Autotune (dict) --

      A flag to indicate if autotune is enabled for the hyperparameter tuning job.

      • Mode (string) --

        Set Mode to Enabled if you want to use Autotune.

    • FailureReason (string) --

      If the tuning job failed, the reason it failed.

    • TuningJobCompletionDetails (dict) --

      Tuning job completion information returned as the response from a hyperparameter tuning job. This information tells if your tuning job has or has not converged. It also includes the number of training jobs that have not improved model performance as evaluated against the objective function.

      • NumberOfTrainingJobsObjectiveNotImproving (integer) --

        The number of training jobs launched by a tuning job that are not improving (1% or less) as measured by model performance evaluated against an objective function.

      • ConvergenceDetectedTime (datetime) --

        The time in timestamp format that AMT detected model convergence, as defined by a lack of significant improvement over time based on criteria developed over a wide range of diverse benchmarking tests.

    • ConsumedResources (dict) --

      The total resources consumed by your hyperparameter tuning job.

      • RuntimeInSeconds (integer) --

        The wall clock runtime in seconds used by your hyperparameter tuning job.

DescribeModelBiasJobDefinition (updated) Link ¶
Changes (response)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Returns a description of a model bias job definition.

See also: AWS API Documentation

Request Syntax

client.describe_model_bias_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model bias job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'ModelBiasBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    'ModelBiasAppSpecification': {
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    'ModelBiasJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}
            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    'ModelBiasJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model bias job.

    • JobDefinitionName (string) --

      The name of the bias job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

    • CreationTime (datetime) --

      The time at which the model bias job was created.

    • ModelBiasBaselineConfig (dict) --

      The baseline configuration for a model bias job.

      • BaseliningJobName (string) --

        The name of the baseline model bias job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

    • ModelBiasAppSpecification (dict) --

      Configures the model bias job to run a specified Docker container image.

      • ImageUri (string) --

        The container image to be run by the model bias job.

      • ConfigUri (string) --

        JSON formatted S3 file that defines bias parameters. For more information on this JSON configuration file, see Configure bias parameters.

      • Environment (dict) --

        Sets the environment variables in the Docker container.

        • (string) --

          • (string) --

    • ModelBiasJobInput (dict) --

      Inputs for the model bias job.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

      • BatchTransformInput (dict) --

        Input object for the batch transform job.

        • DataCapturedDestinationS3Uri (string) --

          The Amazon S3 location being used to capture the data.

        • DatasetFormat (dict) --

          The dataset format for your batch transform job.

          • Csv (dict) --

            The CSV dataset used in the monitoring job.

            • Header (boolean) --

              Indicates if the CSV data has a header.

          • Json (dict) --

            The JSON dataset used in the monitoring job

            • Line (boolean) --

              Indicates if the file should be read as a JSON object per line.

          • Parquet (dict) --

            The Parquet dataset used in the monitoring job

        • LocalPath (string) --

          Path to the filesystem where the batch transform data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

      • GroundTruthS3Input (dict) --

        Location of ground truth labels to use in model bias job.

        • S3Uri (string) --

          The address of the Amazon S3 location of the ground truth labels.

    • ModelBiasJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      Networking options for a model bias job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of the IAM role that has read permission to the input data location and write permission to the output data location in Amazon S3.

    • StoppingCondition (dict) --

      A time limit for how long the monitoring job is allowed to run before stopping.

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

        Note

        The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

DescribeModelExplainabilityJobDefinition (updated) Link ¶
Changes (response)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Returns a description of a model explainability job definition.

See also: AWS API Documentation

Request Syntax

client.describe_model_explainability_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model explainability job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'ModelExplainabilityBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    'ModelExplainabilityAppSpecification': {
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    'ModelExplainabilityJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}
            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        }
    },
    'ModelExplainabilityJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model explainability job.

    • JobDefinitionName (string) --

      The name of the explainability job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

    • CreationTime (datetime) --

      The time at which the model explainability job was created.

    • ModelExplainabilityBaselineConfig (dict) --

      The baseline configuration for a model explainability job.

      • BaseliningJobName (string) --

        The name of the baseline model explainability job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

    • ModelExplainabilityAppSpecification (dict) --

      Configures the model explainability job to run a specified Docker container image.

      • ImageUri (string) --

        The container image to be run by the model explainability job.

      • ConfigUri (string) --

        JSON formatted Amazon S3 file that defines explainability parameters. For more information on this JSON configuration file, see Configure model explainability parameters.

      • Environment (dict) --

        Sets the environment variables in the Docker container.

        • (string) --

          • (string) --

    • ModelExplainabilityJobInput (dict) --

      Inputs for the model explainability job.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

      • BatchTransformInput (dict) --

        Input object for the batch transform job.

        • DataCapturedDestinationS3Uri (string) --

          The Amazon S3 location being used to capture the data.

        • DatasetFormat (dict) --

          The dataset format for your batch transform job.

          • Csv (dict) --

            The CSV dataset used in the monitoring job.

            • Header (boolean) --

              Indicates if the CSV data has a header.

          • Json (dict) --

            The JSON dataset used in the monitoring job

            • Line (boolean) --

              Indicates if the file should be read as a JSON object per line.

          • Parquet (dict) --

            The Parquet dataset used in the monitoring job

        • LocalPath (string) --

          Path to the filesystem where the batch transform data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

    • ModelExplainabilityJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      Networking options for a model explainability job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of the IAM role that has read permission to the input data location and write permission to the output data location in Amazon S3.

    • StoppingCondition (dict) --

      A time limit for how long the monitoring job is allowed to run before stopping.

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

        Note

        The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

DescribeModelQualityJobDefinition (updated) Link ¶
Changes (response)
{'JobResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                     'ml.g5.16xlarge',
                                                     'ml.g5.24xlarge',
                                                     'ml.g5.2xlarge',
                                                     'ml.g5.48xlarge',
                                                     'ml.g5.4xlarge',
                                                     'ml.g5.8xlarge',
                                                     'ml.g5.xlarge',
                                                     'ml.r5d.12xlarge',
                                                     'ml.r5d.16xlarge',
                                                     'ml.r5d.24xlarge',
                                                     'ml.r5d.2xlarge',
                                                     'ml.r5d.4xlarge',
                                                     'ml.r5d.8xlarge',
                                                     'ml.r5d.large',
                                                     'ml.r5d.xlarge'}}}}

Returns a description of a model quality job definition.

See also: AWS API Documentation

Request Syntax

client.describe_model_quality_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model quality job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'ModelQualityBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    'ModelQualityAppSpecification': {
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'ProblemType': 'BinaryClassification'|'MulticlassClassification'|'Regression',
        'Environment': {
            'string': 'string'
        }
    },
    'ModelQualityJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'BatchTransformInput': {
            'DataCapturedDestinationS3Uri': 'string',
            'DatasetFormat': {
                'Csv': {
                    'Header': True|False
                },
                'Json': {
                    'Line': True|False
                },
                'Parquet': {}
            },
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string',
            'ExcludeFeaturesAttribute': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    'ModelQualityJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model quality job.

    • JobDefinitionName (string) --

      The name of the quality job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

    • CreationTime (datetime) --

      The time at which the model quality job was created.

    • ModelQualityBaselineConfig (dict) --

      The baseline configuration for a model quality job.

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the monitoring job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

    • ModelQualityAppSpecification (dict) --

      Configures the model quality job to run a specified Docker container image.

      • ImageUri (string) --

        The address of the container image that the monitoring job runs.

      • ContainerEntrypoint (list) --

        Specifies the entrypoint for a container that the monitoring job runs.

        • (string) --

      • ContainerArguments (list) --

        An array of arguments for the container used to run the monitoring job.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

      • ProblemType (string) --

        The machine learning problem type of the model that the monitoring job monitors.

      • Environment (dict) --

        Sets the environment variables in the container that the monitoring job runs.

        • (string) --

          • (string) --

    • ModelQualityJobInput (dict) --

      Inputs for the model quality job.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

      • BatchTransformInput (dict) --

        Input object for the batch transform job.

        • DataCapturedDestinationS3Uri (string) --

          The Amazon S3 location being used to capture the data.

        • DatasetFormat (dict) --

          The dataset format for your batch transform job.

          • Csv (dict) --

            The CSV dataset used in the monitoring job.

            • Header (boolean) --

              Indicates if the CSV data has a header.

          • Json (dict) --

            The JSON dataset used in the monitoring job

            • Line (boolean) --

              Indicates if the file should be read as a JSON object per line.

          • Parquet (dict) --

            The Parquet dataset used in the monitoring job

        • LocalPath (string) --

          Path to the filesystem where the batch transform data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • EndTimeOffset (string) --

          If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

        • ExcludeFeaturesAttribute (string) --

          The attributes of the input data to exclude from the analysis.

      • GroundTruthS3Input (dict) --

        The ground truth label provided for the model.

        • S3Uri (string) --

          The address of the Amazon S3 location of the ground truth labels.

    • ModelQualityJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      Networking options for a model quality job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

    • StoppingCondition (dict) --

      A time limit for how long the monitoring job is allowed to run before stopping.

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

        Note

        The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

DescribeMonitoringSchedule (updated) Link ¶
Changes (response)
{'MonitoringScheduleConfig': {'MonitoringJobDefinition': {'MonitoringResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                                                                                     'ml.g5.16xlarge',
                                                                                                                     'ml.g5.24xlarge',
                                                                                                                     'ml.g5.2xlarge',
                                                                                                                     'ml.g5.48xlarge',
                                                                                                                     'ml.g5.4xlarge',
                                                                                                                     'ml.g5.8xlarge',
                                                                                                                     'ml.g5.xlarge',
                                                                                                                     'ml.r5d.12xlarge',
                                                                                                                     'ml.r5d.16xlarge',
                                                                                                                     'ml.r5d.24xlarge',
                                                                                                                     'ml.r5d.2xlarge',
                                                                                                                     'ml.r5d.4xlarge',
                                                                                                                     'ml.r5d.8xlarge',
                                                                                                                     'ml.r5d.large',
                                                                                                                     'ml.r5d.xlarge'}}}}}}

Describes the schedule for a monitoring job.

See also: AWS API Documentation

Request Syntax

client.describe_monitoring_schedule(
    MonitoringScheduleName='string'
)
type MonitoringScheduleName

string

param MonitoringScheduleName

[REQUIRED]

Name of a previously created monitoring schedule.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleArn': 'string',
    'MonitoringScheduleName': 'string',
    'MonitoringScheduleStatus': 'Pending'|'Failed'|'Scheduled'|'Stopped',
    'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability',
    'FailureReason': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'MonitoringScheduleConfig': {
        'ScheduleConfig': {
            'ScheduleExpression': 'string',
            'DataAnalysisStartTime': 'string',
            'DataAnalysisEndTime': 'string'
        },
        'MonitoringJobDefinition': {
            'BaselineConfig': {
                'BaseliningJobName': 'string',
                'ConstraintsResource': {
                    'S3Uri': 'string'
                },
                'StatisticsResource': {
                    'S3Uri': 'string'
                }
            },
            'MonitoringInputs': [
                {
                    'EndpointInput': {
                        'EndpointName': 'string',
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string',
                        'ExcludeFeaturesAttribute': 'string'
                    },
                    'BatchTransformInput': {
                        'DataCapturedDestinationS3Uri': 'string',
                        'DatasetFormat': {
                            'Csv': {
                                'Header': True|False
                            },
                            'Json': {
                                'Line': True|False
                            },
                            'Parquet': {}
                        },
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string',
                        'ExcludeFeaturesAttribute': 'string'
                    }
                },
            ],
            'MonitoringOutputConfig': {
                'MonitoringOutputs': [
                    {
                        'S3Output': {
                            'S3Uri': 'string',
                            'LocalPath': 'string',
                            'S3UploadMode': 'Continuous'|'EndOfJob'
                        }
                    },
                ],
                'KmsKeyId': 'string'
            },
            'MonitoringResources': {
                'ClusterConfig': {
                    'InstanceCount': 123,
                    'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
                    'VolumeSizeInGB': 123,
                    'VolumeKmsKeyId': 'string'
                }
            },
            'MonitoringAppSpecification': {
                'ImageUri': 'string',
                'ContainerEntrypoint': [
                    'string',
                ],
                'ContainerArguments': [
                    'string',
                ],
                'RecordPreprocessorSourceUri': 'string',
                'PostAnalyticsProcessorSourceUri': 'string'
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123
            },
            'Environment': {
                'string': 'string'
            },
            'NetworkConfig': {
                'EnableInterContainerTrafficEncryption': True|False,
                'EnableNetworkIsolation': True|False,
                'VpcConfig': {
                    'SecurityGroupIds': [
                        'string',
                    ],
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'RoleArn': 'string'
        },
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    },
    'EndpointName': 'string',
    'LastMonitoringExecutionSummary': {
        'MonitoringScheduleName': 'string',
        'ScheduledTime': datetime(2015, 1, 1),
        'CreationTime': datetime(2015, 1, 1),
        'LastModifiedTime': datetime(2015, 1, 1),
        'MonitoringExecutionStatus': 'Pending'|'Completed'|'CompletedWithViolations'|'InProgress'|'Failed'|'Stopping'|'Stopped',
        'ProcessingJobArn': 'string',
        'EndpointName': 'string',
        'FailureReason': 'string',
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    }
}

Response Structure

  • (dict) --

    • MonitoringScheduleArn (string) --

      The Amazon Resource Name (ARN) of the monitoring schedule.

    • MonitoringScheduleName (string) --

      Name of the monitoring schedule.

    • MonitoringScheduleStatus (string) --

      The status of an monitoring job.

    • MonitoringType (string) --

      The type of the monitoring job that this schedule runs. This is one of the following values.

      • DATA_QUALITY - The schedule is for a data quality monitoring job.

      • MODEL_QUALITY - The schedule is for a model quality monitoring job.

      • MODEL_BIAS - The schedule is for a bias monitoring job.

      • MODEL_EXPLAINABILITY - The schedule is for an explainability monitoring job.

    • FailureReason (string) --

      A string, up to one KB in size, that contains the reason a monitoring job failed, if it failed.

    • CreationTime (datetime) --

      The time at which the monitoring job was created.

    • LastModifiedTime (datetime) --

      The time at which the monitoring job was last modified.

    • MonitoringScheduleConfig (dict) --

      The configuration object that specifies the monitoring schedule and defines the monitoring job.

      • ScheduleConfig (dict) --

        Configures the monitoring schedule.

        • ScheduleExpression (string) --

          A cron expression that describes details about the monitoring schedule.

          The supported cron expressions are:

          • If you want to set the job to start every hour, use the following: Hourly: cron(0 * ? * * *)

          • If you want to start the job daily: cron(0 [00-23] ? * * *)

          • If you want to run the job one time, immediately, use the following keyword: NOW

          For example, the following are valid cron expressions:

          • Daily at noon UTC: cron(0 12 ? * * *)

          • Daily at midnight UTC: cron(0 0 ? * * *)

          To support running every 6, 12 hours, the following are also supported:

          cron(0 [00-23]/[01-24] ? * * *)

          For example, the following are valid cron expressions:

          • Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *)

          • Every two hours starting at midnight: cron(0 0/2 ? * * *)

          Note

          • Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.

          • We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.

          You can also specify the keyword NOW to run the monitoring job immediately, one time, without recurring.

        • DataAnalysisStartTime (string) --

          Sets the start time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to monitor the five hours of data in your dataset that precede the start of each monitoring job, you would specify: "-PT5H" .

          The start time that you specify must not precede the end time that you specify by more than 24 hours. You specify the end time with the DataAnalysisEndTime parameter.

          If you set ScheduleExpression to NOW , this parameter is required.

        • DataAnalysisEndTime (string) --

          Sets the end time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to end the window one hour before the start of each monitoring job, you would specify: "-PT1H" .

          The end time that you specify must not follow the start time that you specify by more than 24 hours. You specify the start time with the DataAnalysisStartTime parameter.

          If you set ScheduleExpression to NOW , this parameter is required.

      • MonitoringJobDefinition (dict) --

        Defines the monitoring job.

        • BaselineConfig (dict) --

          Baseline configuration used to validate that the data conforms to the specified constraints and statistics

          • BaseliningJobName (string) --

            The name of the job that performs baselining for the monitoring job.

          • ConstraintsResource (dict) --

            The baseline constraint file in Amazon S3 that the current monitoring job should validated against.

            • S3Uri (string) --

              The Amazon S3 URI for the constraints resource.

          • StatisticsResource (dict) --

            The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.

            • S3Uri (string) --

              The Amazon S3 URI for the statistics resource.

        • MonitoringInputs (list) --

          The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker Endpoint.

          • (dict) --

            The inputs for a monitoring job.

            • EndpointInput (dict) --

              The endpoint for a monitoring job.

              • EndpointName (string) --

                An endpoint in customer's account which has enabled DataCaptureConfig enabled.

              • LocalPath (string) --

                Path to the filesystem where the endpoint data is available to the container.

              • S3InputMode (string) --

                Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

              • S3DataDistributionType (string) --

                Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

              • FeaturesAttribute (string) --

                The attributes of the input data that are the input features.

              • InferenceAttribute (string) --

                The attribute of the input data that represents the ground truth label.

              • ProbabilityAttribute (string) --

                In a classification problem, the attribute that represents the class probability.

              • ProbabilityThresholdAttribute (float) --

                The threshold for the class probability to be evaluated as a positive result.

              • StartTimeOffset (string) --

                If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

              • EndTimeOffset (string) --

                If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

              • ExcludeFeaturesAttribute (string) --

                The attributes of the input data to exclude from the analysis.

            • BatchTransformInput (dict) --

              Input object for the batch transform job.

              • DataCapturedDestinationS3Uri (string) --

                The Amazon S3 location being used to capture the data.

              • DatasetFormat (dict) --

                The dataset format for your batch transform job.

                • Csv (dict) --

                  The CSV dataset used in the monitoring job.

                  • Header (boolean) --

                    Indicates if the CSV data has a header.

                • Json (dict) --

                  The JSON dataset used in the monitoring job

                  • Line (boolean) --

                    Indicates if the file should be read as a JSON object per line.

                • Parquet (dict) --

                  The Parquet dataset used in the monitoring job

              • LocalPath (string) --

                Path to the filesystem where the batch transform data is available to the container.

              • S3InputMode (string) --

                Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

              • S3DataDistributionType (string) --

                Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

              • FeaturesAttribute (string) --

                The attributes of the input data that are the input features.

              • InferenceAttribute (string) --

                The attribute of the input data that represents the ground truth label.

              • ProbabilityAttribute (string) --

                In a classification problem, the attribute that represents the class probability.

              • ProbabilityThresholdAttribute (float) --

                The threshold for the class probability to be evaluated as a positive result.

              • StartTimeOffset (string) --

                If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

              • EndTimeOffset (string) --

                If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

              • ExcludeFeaturesAttribute (string) --

                The attributes of the input data to exclude from the analysis.

        • MonitoringOutputConfig (dict) --

          The array of outputs from the monitoring job to be uploaded to Amazon S3.

          • MonitoringOutputs (list) --

            Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

            • (dict) --

              The output object for a monitoring job.

              • S3Output (dict) --

                The Amazon S3 storage location where the results of a monitoring job are saved.

                • S3Uri (string) --

                  A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

                • LocalPath (string) --

                  The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

                • S3UploadMode (string) --

                  Whether to upload the results of the monitoring job continuously or after the job completes.

          • KmsKeyId (string) --

            The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

        • MonitoringResources (dict) --

          Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job. In distributed processing, you specify more than one instance.

          • ClusterConfig (dict) --

            The configuration for the cluster resources used to run the processing job.

            • InstanceCount (integer) --

              The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

            • InstanceType (string) --

              The ML compute instance type for the processing job.

            • VolumeSizeInGB (integer) --

              The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

            • VolumeKmsKeyId (string) --

              The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

        • MonitoringAppSpecification (dict) --

          Configures the monitoring job to run a specified Docker container image.

          • ImageUri (string) --

            The container image to be run by the monitoring job.

          • ContainerEntrypoint (list) --

            Specifies the entrypoint for a container used to run the monitoring job.

            • (string) --

          • ContainerArguments (list) --

            An array of arguments for the container used to run the monitoring job.

            • (string) --

          • RecordPreprocessorSourceUri (string) --

            An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

          • PostAnalyticsProcessorSourceUri (string) --

            An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

        • StoppingCondition (dict) --

          Specifies a time limit for how long the monitoring job is allowed to run.

          • MaxRuntimeInSeconds (integer) --

            The maximum runtime allowed in seconds.

            Note

            The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

        • Environment (dict) --

          Sets the environment variables in the Docker container.

          • (string) --

            • (string) --

        • NetworkConfig (dict) --

          Specifies networking options for an monitoring job.

          • EnableInterContainerTrafficEncryption (boolean) --

            Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

          • EnableNetworkIsolation (boolean) --

            Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

          • VpcConfig (dict) --

            Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

            • SecurityGroupIds (list) --

              The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

              • (string) --

            • Subnets (list) --

              The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

              • (string) --

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

      • MonitoringJobDefinitionName (string) --

        The name of the monitoring job definition to schedule.

      • MonitoringType (string) --

        The type of the monitoring job definition to schedule.

    • EndpointName (string) --

      The name of the endpoint for the monitoring job.

    • LastMonitoringExecutionSummary (dict) --

      Describes metadata on the last execution to run, if there was one.

      • MonitoringScheduleName (string) --

        The name of the monitoring schedule.

      • ScheduledTime (datetime) --

        The time the monitoring job was scheduled.

      • CreationTime (datetime) --

        The time at which the monitoring job was created.

      • LastModifiedTime (datetime) --

        A timestamp that indicates the last time the monitoring job was modified.

      • MonitoringExecutionStatus (string) --

        The status of the monitoring job.

      • ProcessingJobArn (string) --

        The Amazon Resource Name (ARN) of the monitoring job.

      • EndpointName (string) --

        The name of the endpoint used to run the monitoring job.

      • FailureReason (string) --

        Contains the reason a monitoring job failed, if it failed.

      • MonitoringJobDefinitionName (string) --

        The name of the monitoring job.

      • MonitoringType (string) --

        The type of the monitoring job.

DescribeProcessingJob (updated) Link ¶
Changes (response)
{'ProcessingResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                            'ml.g5.16xlarge',
                                                            'ml.g5.24xlarge',
                                                            'ml.g5.2xlarge',
                                                            'ml.g5.48xlarge',
                                                            'ml.g5.4xlarge',
                                                            'ml.g5.8xlarge',
                                                            'ml.g5.xlarge',
                                                            'ml.r5d.12xlarge',
                                                            'ml.r5d.16xlarge',
                                                            'ml.r5d.24xlarge',
                                                            'ml.r5d.2xlarge',
                                                            'ml.r5d.4xlarge',
                                                            'ml.r5d.8xlarge',
                                                            'ml.r5d.large',
                                                            'ml.r5d.xlarge'}}}}

Returns a description of a processing job.

See also: AWS API Documentation

Request Syntax

client.describe_processing_job(
    ProcessingJobName='string'
)
type ProcessingJobName

string

param ProcessingJobName

[REQUIRED]

The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

rtype

dict

returns

Response Syntax

{
    'ProcessingInputs': [
        {
            'InputName': 'string',
            'AppManaged': True|False,
            'S3Input': {
                'S3Uri': 'string',
                'LocalPath': 'string',
                'S3DataType': 'ManifestFile'|'S3Prefix',
                'S3InputMode': 'Pipe'|'File',
                'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                'S3CompressionType': 'None'|'Gzip'
            },
            'DatasetDefinition': {
                'AthenaDatasetDefinition': {
                    'Catalog': 'string',
                    'Database': 'string',
                    'QueryString': 'string',
                    'WorkGroup': 'string',
                    'OutputS3Uri': 'string',
                    'KmsKeyId': 'string',
                    'OutputFormat': 'PARQUET'|'ORC'|'AVRO'|'JSON'|'TEXTFILE',
                    'OutputCompression': 'GZIP'|'SNAPPY'|'ZLIB'
                },
                'RedshiftDatasetDefinition': {
                    'ClusterId': 'string',
                    'Database': 'string',
                    'DbUser': 'string',
                    'QueryString': 'string',
                    'ClusterRoleArn': 'string',
                    'OutputS3Uri': 'string',
                    'KmsKeyId': 'string',
                    'OutputFormat': 'PARQUET'|'CSV',
                    'OutputCompression': 'None'|'GZIP'|'BZIP2'|'ZSTD'|'SNAPPY'
                },
                'LocalPath': 'string',
                'DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                'InputMode': 'Pipe'|'File'
            }
        },
    ],
    'ProcessingOutputConfig': {
        'Outputs': [
            {
                'OutputName': 'string',
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                },
                'FeatureStoreOutput': {
                    'FeatureGroupName': 'string'
                },
                'AppManaged': True|False
            },
        ],
        'KmsKeyId': 'string'
    },
    'ProcessingJobName': 'string',
    'ProcessingResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    },
    'AppSpecification': {
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ]
    },
    'Environment': {
        'string': 'string'
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'ExperimentConfig': {
        'ExperimentName': 'string',
        'TrialName': 'string',
        'TrialComponentDisplayName': 'string',
        'RunName': 'string'
    },
    'ProcessingJobArn': 'string',
    'ProcessingJobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
    'ExitMessage': 'string',
    'FailureReason': 'string',
    'ProcessingEndTime': datetime(2015, 1, 1),
    'ProcessingStartTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'CreationTime': datetime(2015, 1, 1),
    'MonitoringScheduleArn': 'string',
    'AutoMLJobArn': 'string',
    'TrainingJobArn': 'string'
}

Response Structure

  • (dict) --

    • ProcessingInputs (list) --

      The inputs for a processing job.

      • (dict) --

        The inputs for a processing job. The processing input must specify exactly one of either S3Input or DatasetDefinition types.

        • InputName (string) --

          The name for the processing job input.

        • AppManaged (boolean) --

          When True , input operations such as data download are managed natively by the processing job application. When False (default), input operations are managed by Amazon SageMaker.

        • S3Input (dict) --

          Configuration for downloading input data from Amazon S3 into the processing container.

          • S3Uri (string) --

            The URI of the Amazon S3 prefix Amazon SageMaker downloads data required to run a processing job.

          • LocalPath (string) --

            The local path in your container where you want Amazon SageMaker to write input data to. LocalPath is an absolute path to the input data and must begin with /opt/ml/processing/ . LocalPath is a required parameter when AppManaged is False (default).

          • S3DataType (string) --

            Whether you use an S3Prefix or a ManifestFile for the data type. If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for the processing job. If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for the processing job.

          • S3InputMode (string) --

            Whether to use File or Pipe input mode. In File mode, Amazon SageMaker copies the data from the input source onto the local ML storage volume before starting your processing container. This is the most commonly used input mode. In Pipe mode, Amazon SageMaker streams input data from the source directly to your processing container into named pipes without using the ML storage volume.

          • S3DataDistributionType (string) --

            Whether to distribute the data from Amazon S3 to all processing instances with FullyReplicated , or whether the data from Amazon S3 is shared by Amazon S3 key, downloading one shard of data to each processing instance.

          • S3CompressionType (string) --

            Whether to GZIP-decompress the data in Amazon S3 as it is streamed into the processing container. Gzip can only be used when Pipe mode is specified as the S3InputMode . In Pipe mode, Amazon SageMaker streams input data from the source directly to your container without using the EBS volume.

        • DatasetDefinition (dict) --

          Configuration for a Dataset Definition input.

          • AthenaDatasetDefinition (dict) --

            Configuration for Athena Dataset Definition input.

            • Catalog (string) --

              The name of the data catalog used in Athena query execution.

            • Database (string) --

              The name of the database used in the Athena query execution.

            • QueryString (string) --

              The SQL query statements, to be executed.

            • WorkGroup (string) --

              The name of the workgroup in which the Athena query is being started.

            • OutputS3Uri (string) --

              The location in Amazon S3 where Athena query results are stored.

            • KmsKeyId (string) --

              The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data generated from an Athena query execution.

            • OutputFormat (string) --

              The data storage format for Athena query results.

            • OutputCompression (string) --

              The compression used for Athena query results.

          • RedshiftDatasetDefinition (dict) --

            Configuration for Redshift Dataset Definition input.

            • ClusterId (string) --

              The Redshift cluster Identifier.

            • Database (string) --

              The name of the Redshift database used in Redshift query execution.

            • DbUser (string) --

              The database user name used in Redshift query execution.

            • QueryString (string) --

              The SQL query statements to be executed.

            • ClusterRoleArn (string) --

              The IAM role attached to your Redshift cluster that Amazon SageMaker uses to generate datasets.

            • OutputS3Uri (string) --

              The location in Amazon S3 where the Redshift query results are stored.

            • KmsKeyId (string) --

              The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data from a Redshift execution.

            • OutputFormat (string) --

              The data storage format for Redshift query results.

            • OutputCompression (string) --

              The compression used for Redshift query results.

          • LocalPath (string) --

            The local path where you want Amazon SageMaker to download the Dataset Definition inputs to run a processing job. LocalPath is an absolute path to the input data. This is a required parameter when AppManaged is False (default).

          • DataDistributionType (string) --

            Whether the generated dataset is FullyReplicated or ShardedByS3Key (default).

          • InputMode (string) --

            Whether to use File or Pipe input mode. In File (default) mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode. In Pipe mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.

    • ProcessingOutputConfig (dict) --

      Output configuration for the processing job.

      • Outputs (list) --

        An array of outputs configuring the data to upload from the processing container.

        • (dict) --

          Describes the results of a processing job. The processing output must specify exactly one of either S3Output or FeatureStoreOutput types.

          • OutputName (string) --

            The name for the processing job output.

          • S3Output (dict) --

            Configuration for processing job outputs in Amazon S3.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 bucket where you want Amazon SageMaker to save the results of a processing job.

            • LocalPath (string) --

              The local path of a directory where you want Amazon SageMaker to upload its contents to Amazon S3. LocalPath is an absolute path to a directory containing output files. This directory will be created by the platform and exist when your container's entrypoint is invoked.

            • S3UploadMode (string) --

              Whether to upload the results of the processing job continuously or after the job completes.

          • FeatureStoreOutput (dict) --

            Configuration for processing job outputs in Amazon SageMaker Feature Store. This processing output type is only supported when AppManaged is specified.

            • FeatureGroupName (string) --

              The name of the Amazon SageMaker FeatureGroup to use as the destination for processing job output. Note that your processing script is responsible for putting records into your Feature Store.

          • AppManaged (boolean) --

            When True , output operations such as data upload are managed natively by the processing job application. When False (default), output operations are managed by Amazon SageMaker.

      • KmsKeyId (string) --

        The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the processing job output. KmsKeyId can be an ID of a KMS key, ARN of a KMS key, alias of a KMS key, or alias of a KMS key. The KmsKeyId is applied to all outputs.

    • ProcessingJobName (string) --

      The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

    • ProcessingResources (dict) --

      Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In distributed training, you specify more than one instance.

      • ClusterConfig (dict) --

        The configuration for the resources in a cluster used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the processing job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume in gigabytes that you want to provision. You must specify sufficient ML storage for your scenario.

          Note

          Certain Nitro-based instances include local storage with a fixed total size, dependent on the instance type. When using these instances for processing, Amazon SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request a VolumeSizeInGB greater than the total size of the local instance storage.

          For a list of instance types that support local instance storage, including the total size per instance type, see Instance Store Volumes.

        • VolumeKmsKeyId (string) --

          The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the processing job.

          Note

          Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

          For a list of instance types that support local instance storage, see Instance Store Volumes.

          For more information about local instance storage encryption, see SSD Instance Store Volumes.

    • StoppingCondition (dict) --

      The time limit for how long the processing job is allowed to run.

      • MaxRuntimeInSeconds (integer) --

        Specifies the maximum runtime in seconds.

    • AppSpecification (dict) --

      Configures the processing job to run a specified container image.

      • ImageUri (string) --

        The container image to be run by the processing job.

      • ContainerEntrypoint (list) --

        The entrypoint for a container used to run a processing job.

        • (string) --

      • ContainerArguments (list) --

        The arguments for a container used to run a processing job.

        • (string) --

    • Environment (dict) --

      The environment variables set in the Docker container.

      • (string) --

        • (string) --

    • NetworkConfig (dict) --

      Networking options for a processing job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

    • ExperimentConfig (dict) --

      The configuration information used to create an experiment.

      • ExperimentName (string) --

        The name of an existing experiment to associate with the trial component.

      • TrialName (string) --

        The name of an existing trial to associate the trial component with. If not specified, a new trial is created.

      • TrialComponentDisplayName (string) --

        The display name for the trial component. If this key isn't specified, the display name is the trial component name.

      • RunName (string) --

        The name of the experiment run to associate with the trial component.

    • ProcessingJobArn (string) --

      The Amazon Resource Name (ARN) of the processing job.

    • ProcessingJobStatus (string) --

      Provides the status of a processing job.

    • ExitMessage (string) --

      An optional string, up to one KB in size, that contains metadata from the processing container when the processing job exits.

    • FailureReason (string) --

      A string, up to one KB in size, that contains the reason a processing job failed, if it failed.

    • ProcessingEndTime (datetime) --

      The time at which the processing job completed.

    • ProcessingStartTime (datetime) --

      The time at which the processing job started.

    • LastModifiedTime (datetime) --

      The time at which the processing job was last modified.

    • CreationTime (datetime) --

      The time at which the processing job was created.

    • MonitoringScheduleArn (string) --

      The ARN of a monitoring schedule for an endpoint associated with this processing job.

    • AutoMLJobArn (string) --

      The ARN of an AutoML job associated with this processing job.

    • TrainingJobArn (string) --

      The ARN of a training job associated with this processing job.

DescribeTrainingJob (updated) Link ¶
Changes (response)
{'DebugRuleConfigurations': {'InstanceType': {'ml.g5.12xlarge',
                                              'ml.g5.16xlarge',
                                              'ml.g5.24xlarge',
                                              'ml.g5.2xlarge',
                                              'ml.g5.48xlarge',
                                              'ml.g5.4xlarge',
                                              'ml.g5.8xlarge',
                                              'ml.g5.xlarge',
                                              'ml.r5d.12xlarge',
                                              'ml.r5d.16xlarge',
                                              'ml.r5d.24xlarge',
                                              'ml.r5d.2xlarge',
                                              'ml.r5d.4xlarge',
                                              'ml.r5d.8xlarge',
                                              'ml.r5d.large',
                                              'ml.r5d.xlarge'}},
 'ProfilerRuleConfigurations': {'InstanceType': {'ml.g5.12xlarge',
                                                 'ml.g5.16xlarge',
                                                 'ml.g5.24xlarge',
                                                 'ml.g5.2xlarge',
                                                 'ml.g5.48xlarge',
                                                 'ml.g5.4xlarge',
                                                 'ml.g5.8xlarge',
                                                 'ml.g5.xlarge',
                                                 'ml.r5d.12xlarge',
                                                 'ml.r5d.16xlarge',
                                                 'ml.r5d.24xlarge',
                                                 'ml.r5d.2xlarge',
                                                 'ml.r5d.4xlarge',
                                                 'ml.r5d.8xlarge',
                                                 'ml.r5d.large',
                                                 'ml.r5d.xlarge'}},
 'ResourceConfig': {'InstanceGroups': {'InstanceType': {'ml.r5.12xlarge',
                                                        'ml.r5.16xlarge',
                                                        'ml.r5.24xlarge',
                                                        'ml.r5.2xlarge',
                                                        'ml.r5.4xlarge',
                                                        'ml.r5.8xlarge',
                                                        'ml.r5.large',
                                                        'ml.r5.xlarge',
                                                        'ml.r5d.12xlarge',
                                                        'ml.r5d.16xlarge',
                                                        'ml.r5d.24xlarge',
                                                        'ml.r5d.2xlarge',
                                                        'ml.r5d.4xlarge',
                                                        'ml.r5d.8xlarge',
                                                        'ml.r5d.large',
                                                        'ml.r5d.xlarge',
                                                        'ml.t3.2xlarge',
                                                        'ml.t3.large',
                                                        'ml.t3.medium',
                                                        'ml.t3.xlarge'}},
                    'InstanceType': {'ml.r5.12xlarge',
                                     'ml.r5.16xlarge',
                                     'ml.r5.24xlarge',
                                     'ml.r5.2xlarge',
                                     'ml.r5.4xlarge',
                                     'ml.r5.8xlarge',
                                     'ml.r5.large',
                                     'ml.r5.xlarge',
                                     'ml.r5d.12xlarge',
                                     'ml.r5d.16xlarge',
                                     'ml.r5d.24xlarge',
                                     'ml.r5d.2xlarge',
                                     'ml.r5d.4xlarge',
                                     'ml.r5d.8xlarge',
                                     'ml.r5d.large',
                                     'ml.r5d.xlarge',
                                     'ml.t3.2xlarge',
                                     'ml.t3.large',
                                     'ml.t3.medium',
                                     'ml.t3.xlarge'}}}

Returns information about a training job.

Some of the attributes below only appear if the training job successfully starts. If the training job fails, TrainingJobStatus is Failed and, depending on the FailureReason , attributes like TrainingStartTime , TrainingTimeInSeconds , TrainingEndTime , and BillableTimeInSeconds may not be present in the response.

See also: AWS API Documentation

Request Syntax

client.describe_training_job(
    TrainingJobName='string'
)
type TrainingJobName

string

param TrainingJobName

[REQUIRED]

The name of the training job.

rtype

dict

returns

Response Syntax

{
    'TrainingJobName': 'string',
    'TrainingJobArn': 'string',
    'TuningJobArn': 'string',
    'LabelingJobArn': 'string',
    'AutoMLJobArn': 'string',
    'ModelArtifacts': {
        'S3ModelArtifacts': 'string'
    },
    'TrainingJobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
    'SecondaryStatus': 'Starting'|'LaunchingMLInstances'|'PreparingTrainingStack'|'Downloading'|'DownloadingTrainingImage'|'Training'|'Uploading'|'Stopping'|'Stopped'|'MaxRuntimeExceeded'|'Completed'|'Failed'|'Interrupted'|'MaxWaitTimeExceeded'|'Updating'|'Restarting'|'Pending',
    'FailureReason': 'string',
    'HyperParameters': {
        'string': 'string'
    },
    'AlgorithmSpecification': {
        'TrainingImage': 'string',
        'AlgorithmName': 'string',
        'TrainingInputMode': 'Pipe'|'File'|'FastFile',
        'MetricDefinitions': [
            {
                'Name': 'string',
                'Regex': 'string'
            },
        ],
        'EnableSageMakerMetricsTimeSeries': True|False,
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'TrainingImageConfig': {
            'TrainingRepositoryAccessMode': 'Platform'|'Vpc',
            'TrainingRepositoryAuthConfig': {
                'TrainingRepositoryCredentialsProviderArn': 'string'
            }
        }
    },
    'RoleArn': 'string',
    'InputDataConfig': [
        {
            'ChannelName': 'string',
            'DataSource': {
                'S3DataSource': {
                    'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                    'S3Uri': 'string',
                    'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                    'AttributeNames': [
                        'string',
                    ],
                    'InstanceGroupNames': [
                        'string',
                    ]
                },
                'FileSystemDataSource': {
                    'FileSystemId': 'string',
                    'FileSystemAccessMode': 'rw'|'ro',
                    'FileSystemType': 'EFS'|'FSxLustre',
                    'DirectoryPath': 'string'
                }
            },
            'ContentType': 'string',
            'CompressionType': 'None'|'Gzip',
            'RecordWrapperType': 'None'|'RecordIO',
            'InputMode': 'Pipe'|'File'|'FastFile',
            'ShuffleConfig': {
                'Seed': 123
            }
        },
    ],
    'OutputDataConfig': {
        'KmsKeyId': 'string',
        'S3OutputPath': 'string',
        'CompressionType': 'GZIP'|'NONE'
    },
    'ResourceConfig': {
        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
        'InstanceCount': 123,
        'VolumeSizeInGB': 123,
        'VolumeKmsKeyId': 'string',
        'KeepAlivePeriodInSeconds': 123,
        'InstanceGroups': [
            {
                'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.trn1.2xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.m6i.large'|'ml.m6i.xlarge'|'ml.m6i.2xlarge'|'ml.m6i.4xlarge'|'ml.m6i.8xlarge'|'ml.m6i.12xlarge'|'ml.m6i.16xlarge'|'ml.m6i.24xlarge'|'ml.m6i.32xlarge'|'ml.c6i.xlarge'|'ml.c6i.2xlarge'|'ml.c6i.8xlarge'|'ml.c6i.4xlarge'|'ml.c6i.12xlarge'|'ml.c6i.16xlarge'|'ml.c6i.24xlarge'|'ml.c6i.32xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                'InstanceCount': 123,
                'InstanceGroupName': 'string'
            },
        ]
    },
    'WarmPoolStatus': {
        'Status': 'Available'|'Terminated'|'Reused'|'InUse',
        'ResourceRetainedBillableTimeInSeconds': 123,
        'ReusedByJob': 'string'
    },
    'VpcConfig': {
        'SecurityGroupIds': [
            'string',
        ],
        'Subnets': [
            'string',
        ]
    },
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123,
        'MaxWaitTimeInSeconds': 123,
        'MaxPendingTimeInSeconds': 123
    },
    'CreationTime': datetime(2015, 1, 1),
    'TrainingStartTime': datetime(2015, 1, 1),
    'TrainingEndTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'SecondaryStatusTransitions': [
        {
            'Status': 'Starting'|'LaunchingMLInstances'|'PreparingTrainingStack'|'Downloading'|'DownloadingTrainingImage'|'Training'|'Uploading'|'Stopping'|'Stopped'|'MaxRuntimeExceeded'|'Completed'|'Failed'|'Interrupted'|'MaxWaitTimeExceeded'|'Updating'|'Restarting'|'Pending',
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1),
            'StatusMessage': 'string'
        },
    ],
    'FinalMetricDataList': [
        {
            'MetricName': 'string',
            'Value': ...,
            'Timestamp': datetime(2015, 1, 1)
        },
    ],
    'EnableNetworkIsolation': True|False,
    'EnableInterContainerTrafficEncryption': True|False,
    'EnableManagedSpotTraining': True|False,
    'CheckpointConfig': {
        'S3Uri': 'string',
        'LocalPath': 'string'
    },
    'TrainingTimeInSeconds': 123,
    'BillableTimeInSeconds': 123,
    'DebugHookConfig': {
        'LocalPath': 'string',
        'S3OutputPath': 'string',
        'HookParameters': {
            'string': 'string'
        },
        'CollectionConfigurations': [
            {
                'CollectionName': 'string',
                'CollectionParameters': {
                    'string': 'string'
                }
            },
        ]
    },
    'ExperimentConfig': {
        'ExperimentName': 'string',
        'TrialName': 'string',
        'TrialComponentDisplayName': 'string',
        'RunName': 'string'
    },
    'DebugRuleConfigurations': [
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    'TensorBoardOutputConfig': {
        'LocalPath': 'string',
        'S3OutputPath': 'string'
    },
    'DebugRuleEvaluationStatuses': [
        {
            'RuleConfigurationName': 'string',
            'RuleEvaluationJobArn': 'string',
            'RuleEvaluationStatus': 'InProgress'|'NoIssuesFound'|'IssuesFound'|'Error'|'Stopping'|'Stopped',
            'StatusDetails': 'string',
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'ProfilerConfig': {
        'S3OutputPath': 'string',
        'ProfilingIntervalInMilliseconds': 123,
        'ProfilingParameters': {
            'string': 'string'
        },
        'DisableProfiler': True|False
    },
    'ProfilerRuleConfigurations': [
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    'ProfilerRuleEvaluationStatuses': [
        {
            'RuleConfigurationName': 'string',
            'RuleEvaluationJobArn': 'string',
            'RuleEvaluationStatus': 'InProgress'|'NoIssuesFound'|'IssuesFound'|'Error'|'Stopping'|'Stopped',
            'StatusDetails': 'string',
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'ProfilingStatus': 'Enabled'|'Disabled',
    'Environment': {
        'string': 'string'
    },
    'RetryStrategy': {
        'MaximumRetryAttempts': 123
    },
    'RemoteDebugConfig': {
        'EnableRemoteDebug': True|False
    },
    'InfraCheckConfig': {
        'EnableInfraCheck': True|False
    }
}

Response Structure

  • (dict) --

    • TrainingJobName (string) --

      Name of the model training job.

    • TrainingJobArn (string) --

      The Amazon Resource Name (ARN) of the training job.

    • TuningJobArn (string) --

      The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

    • LabelingJobArn (string) --

      The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling job that created the transform or training job.

    • AutoMLJobArn (string) --

      The Amazon Resource Name (ARN) of an AutoML job.

    • ModelArtifacts (dict) --

      Information about the Amazon S3 location that is configured for storing model artifacts.

      • S3ModelArtifacts (string) --

        The path of the S3 object that contains the model artifacts. For example, s3://bucket-name/keynameprefix/model.tar.gz .

    • TrainingJobStatus (string) --

      The status of the training job.

      SageMaker provides the following training job statuses:

      • InProgress - The training is in progress.

      • Completed - The training job has completed.

      • Failed - The training job has failed. To see the reason for the failure, see the FailureReason field in the response to a DescribeTrainingJobResponse call.

      • Stopping - The training job is stopping.

      • Stopped - The training job has stopped.

      For more detailed information, see SecondaryStatus .

    • SecondaryStatus (string) --

      Provides detailed information about the state of the training job. For detailed information on the secondary status of the training job, see StatusMessage under SecondaryStatusTransition.

      SageMaker provides primary statuses and secondary statuses that apply to each of them:

      InProgress

      • Starting - Starting the training job.

      • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

      • Training - Training is in progress.

      • Interrupted - The job stopped because the managed spot training instances were interrupted.

      • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

        Completed

      • Completed - The training job has completed.

        Failed

      • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse .

        Stopped

      • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

      • MaxWaitTimeExceeded - The job stopped because it exceeded the maximum allowed wait time.

      • Stopped - The training job has stopped.

        Stopping

      • Stopping - Stopping the training job.

      Warning

      Valid values for SecondaryStatus are subject to change.

      We no longer support the following secondary statuses:

      • LaunchingMLInstances

      • PreparingTraining

      • DownloadingTrainingImage

    • FailureReason (string) --

      If the training job failed, the reason it failed.

    • HyperParameters (dict) --

      Algorithm-specific parameters.

      • (string) --

        • (string) --

    • AlgorithmSpecification (dict) --

      Information about the algorithm used for training, and algorithm metadata.

      • TrainingImage (string) --

        The registry path of the Docker image that contains the training algorithm. For information about docker registry paths for SageMaker built-in algorithms, see Docker Registry Paths and Example Code in the Amazon SageMaker developer guide . SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information about using your custom training container, see Using Your Own Algorithms with Amazon SageMaker.

        Note

        You must specify either the algorithm name to the AlgorithmName parameter or the image URI of the algorithm container to the TrainingImage parameter.

        For more information, see the note in the AlgorithmName parameter description.

      • AlgorithmName (string) --

        The name of the algorithm resource to use for the training job. This must be an algorithm resource that you created or subscribe to on Amazon Web Services Marketplace.

        Note

        You must specify either the algorithm name to the AlgorithmName parameter or the image URI of the algorithm container to the TrainingImage parameter.

        Note that the AlgorithmName parameter is mutually exclusive with the TrainingImage parameter. If you specify a value for the AlgorithmName parameter, you can't specify a value for TrainingImage , and vice versa.

        If you specify values for both parameters, the training job might break; if you don't specify any value for both parameters, the training job might raise a null error.

      • TrainingInputMode (string) --

        The training input mode that the algorithm supports. For more information about input modes, see Algorithms.

        Pipe mode

        If an algorithm supports Pipe mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

        File mode

        If an algorithm supports File mode, SageMaker downloads the training data from S3 to the provisioned ML storage volume, and mounts the directory to the Docker volume for the training container.

        You must provision the ML storage volume with sufficient capacity to accommodate the data downloaded from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container uses the ML storage volume to also store intermediate information, if any.

        For distributed algorithms, training data is distributed uniformly. Your training duration is predictable if the input data objects sizes are approximately the same. SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed when one host in a training cluster is overloaded, thus becoming a bottleneck in training.

        FastFile mode

        If an algorithm supports FastFile mode, SageMaker streams data directly from S3 to the container with no code changes, and provides file system access to the data. Users can author their training script to interact with these files as if they were stored on disk.

        FastFile mode works best when the data is read sequentially. Augmented manifest files aren't supported. The startup time is lower when there are fewer files in the S3 bucket provided.

      • MetricDefinitions (list) --

        A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. SageMaker publishes each metric to Amazon CloudWatch.

        • (dict) --

          Specifies a metric that the training algorithm writes to stderr or stdout . You can view these logs to understand how your training job performs and check for any errors encountered during training. SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job performance during hyperparameter tuning.

          • Name (string) --

            The name of the metric.

          • Regex (string) --

            A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.

      • EnableSageMakerMetricsTimeSeries (boolean) --

        To generate and save time-series metrics during training, set to true . The default is false and time-series metrics aren't generated except in the following cases:

      • ContainerEntrypoint (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 more information.

        • (string) --

      • ContainerArguments (list) --

        The arguments for a container used to run a training job. See How Amazon SageMaker Runs Your Training Image for additional information.

        • (string) --

      • TrainingImageConfig (dict) --

        The configuration to use an image from a private Docker registry for a training job.

        • TrainingRepositoryAccessMode (string) --

          The method that your training job will use to gain access to the images in your private Docker registry. For access to an image in a private Docker registry, set to Vpc .

        • TrainingRepositoryAuthConfig (dict) --

          An object containing authentication information for a private Docker registry containing your training images.

          • TrainingRepositoryCredentialsProviderArn (string) --

            The Amazon Resource Name (ARN) of an Amazon Web Services Lambda function used to give SageMaker access credentials to your private Docker registry.

    • RoleArn (string) --

      The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.

    • InputDataConfig (list) --

      An array of Channel objects that describes each data input channel.

      • (dict) --

        A channel is a named input source that training algorithms can consume.

        • ChannelName (string) --

          The name of the channel.

        • DataSource (dict) --

          The location of the channel data.

          • S3DataSource (dict) --

            The S3 location of the data source that is associated with a channel.

            • S3DataType (string) --

              If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

              If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

              If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

            • S3Uri (string) --

              Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

              • A key name prefix might look like this: s3://bucketname/exampleprefix/

              • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.

              Your input bucket must be located in same Amazon Web Services region as your training job.

            • S3DataDistributionType (string) --

              If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

              If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

              Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

              In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

            • AttributeNames (list) --

              A list of one or more attribute names to use that are found in a specified augmented manifest file.

              • (string) --

            • InstanceGroupNames (list) --

              A list of names of instance groups that get data from the S3 data source.

              • (string) --

          • FileSystemDataSource (dict) --

            The file system that is associated with a channel.

            • FileSystemId (string) --

              The file system id.

            • FileSystemAccessMode (string) --

              The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

            • FileSystemType (string) --

              The file system type.

            • DirectoryPath (string) --

              The full path to the directory to associate with the channel.

        • ContentType (string) --

          The MIME type of the data.

        • CompressionType (string) --

          If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

        • RecordWrapperType (string) --

          Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

          In File mode, leave this field unset or set it to None.

        • InputMode (string) --

          (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

          To use a model for incremental training, choose File input model.

        • ShuffleConfig (dict) --

          A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

          For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

          • Seed (integer) --

            Determines the shuffling order in ShuffleConfig value.

    • OutputDataConfig (dict) --

      The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.

      • KmsKeyId (string) --

        The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

        • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

        • // KMS Key Alias "alias/ExampleAlias"

        • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

        If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide . If the output data is stored in Amazon S3 Express One Zone, it is encrypted with server-side encryption with Amazon S3 managed keys (SSE-S3). KMS key is not supported for Amazon S3 Express One Zone

        The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .

      • S3OutputPath (string) --

        Identifies the S3 path where you want SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

      • CompressionType (string) --

        The model output compression type. Select None to output an uncompressed model, recommended for large model outputs. Defaults to gzip.

    • ResourceConfig (dict) --

      Resources, including ML compute instances and ML storage volumes, that are configured for model training.

      • InstanceType (string) --

        The ML compute instance type.

        Note

        SageMaker Training on Amazon Elastic Compute Cloud (EC2) P4de instances is in preview release starting December 9th, 2022.

        Amazon EC2 P4de instances (currently in preview) are powered by 8 NVIDIA A100 GPUs with 80GB high-performance HBM2e GPU memory, which accelerate the speed of training ML models that need to be trained on large datasets of high-resolution data. In this preview release, Amazon SageMaker supports ML training jobs on P4de instances ( ml.p4de.24xlarge ) to reduce model training time. The ml.p4de.24xlarge instances are available in the following Amazon Web Services Regions.

        • US East (N. Virginia) (us-east-1)

        • US West (Oregon) (us-west-2)

        To request quota limit increase and start using P4de instances, contact the SageMaker Training service team through your account team.

      • InstanceCount (integer) --

        The number of ML compute instances to use. For distributed training, provide a value greater than 1.

      • VolumeSizeInGB (integer) --

        The size of the ML storage volume that you want to provision.

        ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

        When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d , ml.g4dn , and ml.g5 .

        When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2 .

        To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

        To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

      • VolumeKmsKeyId (string) --

        The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

        Note

        Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

        For a list of instance types that support local instance storage, see Instance Store Volumes.

        For more information about local instance storage encryption, see SSD Instance Store Volumes.

        The VolumeKmsKeyId can be in any of the following formats:

        • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

      • KeepAlivePeriodInSeconds (integer) --

        The duration of time in seconds to retain configured resources in a warm pool for subsequent training jobs.

      • InstanceGroups (list) --

        The configuration of a heterogeneous cluster in JSON format.

        • (dict) --

          Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .

          • InstanceType (string) --

            Specifies the instance type of the instance group.

          • InstanceCount (integer) --

            Specifies the number of instances of the instance group.

          • InstanceGroupName (string) --

            Specifies the name of the instance group.

    • WarmPoolStatus (dict) --

      The status of the warm pool associated with the training job.

      • Status (string) --

        The status of the warm pool.

        • InUse : The warm pool is in use for the training job.

        • Available : The warm pool is available to reuse for a matching training job.

        • Reused : The warm pool moved to a matching training job for reuse.

        • Terminated : The warm pool is no longer available. Warm pools are unavailable if they are terminated by a user, terminated for a patch update, or terminated for exceeding the specified KeepAlivePeriodInSeconds .

      • ResourceRetainedBillableTimeInSeconds (integer) --

        The billable time in seconds used by the warm pool. Billable time refers to the absolute wall-clock time.

        Multiply ResourceRetainedBillableTimeInSeconds by the number of instances ( InstanceCount ) in your training cluster to get the total compute time SageMaker bills you if you run warm pool training. The formula is as follows: ResourceRetainedBillableTimeInSeconds * InstanceCount .

      • ReusedByJob (string) --

        The name of the matching training job that reused the warm pool.

    • VpcConfig (dict) --

      A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

      • SecurityGroupIds (list) --

        The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

        • (string) --

      • Subnets (list) --

        The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

        • (string) --

    • StoppingCondition (dict) --

      Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.

      To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.

      • MaxRuntimeInSeconds (integer) --

        The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

        For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

        For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

        The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

      • MaxWaitTimeInSeconds (integer) --

        The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds . If the job does not complete during this time, SageMaker ends the job.

        When RetryStrategy is specified in the job request, MaxWaitTimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt.

      • MaxPendingTimeInSeconds (integer) --

        The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

    • CreationTime (datetime) --

      A timestamp that indicates when the training job was created.

    • TrainingStartTime (datetime) --

      Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime . The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.

    • TrainingEndTime (datetime) --

      Indicates the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when SageMaker detects a job failure.

    • LastModifiedTime (datetime) --

      A timestamp that indicates when the status of the training job was last modified.

    • SecondaryStatusTransitions (list) --

      A history of all of the secondary statuses that the training job has transitioned through.

      • (dict) --

        An array element of SecondaryStatusTransitions for DescribeTrainingJob. It provides additional details about a status that the training job has transitioned through. A training job can be in one of several states, for example, starting, downloading, training, or uploading. Within each state, there are a number of intermediate states. For example, within the starting state, SageMaker could be starting the training job or launching the ML instances. These transitional states are referred to as the job's secondary status.

        • Status (string) --

          Contains a secondary status information from a training job.

          Status might be one of the following secondary statuses:

          InProgress

          • Starting - Starting the training job.

          • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

          • Training - Training is in progress.

          • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

            Completed

          • Completed - The training job has completed.

            Failed

          • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse .

            Stopped

          • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

          • Stopped - The training job has stopped.

            Stopping

          • Stopping - Stopping the training job.

          We no longer support the following secondary statuses:

          • LaunchingMLInstances

          • PreparingTrainingStack

          • DownloadingTrainingImage

        • StartTime (datetime) --

          A timestamp that shows when the training job transitioned to the current secondary status state.

        • EndTime (datetime) --

          A timestamp that shows when the training job transitioned out of this secondary status state into another secondary status state or when the training job has ended.

        • StatusMessage (string) --

          A detailed description of the progress within a secondary status.

          SageMaker provides secondary statuses and status messages that apply to each of them:

          Starting

          • Starting the training job.

          • Launching requested ML instances.

          • Insufficient capacity error from EC2 while launching instances, retrying!

          • Launched instance was unhealthy, replacing it!

          • Preparing the instances for training.

            Training

          • Training image download completed. Training in progress.

          Warning

          Status messages are subject to change. Therefore, we recommend not including them in code that programmatically initiates actions. For examples, don't use status messages in if statements.

          To have an overview of your training job's progress, view TrainingJobStatus and SecondaryStatus in DescribeTrainingJob, and StatusMessage together. For example, at the start of a training job, you might see the following:

          • TrainingJobStatus - InProgress

          • SecondaryStatus - Training

          • StatusMessage - Downloading the training image

    • FinalMetricDataList (list) --

      A collection of MetricData objects that specify the names, values, and dates and times that the training algorithm emitted to Amazon CloudWatch.

      • (dict) --

        The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.

        • MetricName (string) --

          The name of the metric.

        • Value (float) --

          The value of the metric.

        • Timestamp (datetime) --

          The date and time that the algorithm emitted the metric.

    • EnableNetworkIsolation (boolean) --

      If you want to allow inbound or outbound network calls, except for calls between peers within a training cluster for distributed training, choose True . If you enable network isolation for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

    • EnableInterContainerTrafficEncryption (boolean) --

      To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithms in distributed training.

    • EnableManagedSpotTraining (boolean) --

      A Boolean indicating whether managed spot training is enabled ( True ) or not ( False ).

    • CheckpointConfig (dict) --

      Contains information about the output location for managed spot training checkpoint data.

      • S3Uri (string) --

        Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

      • LocalPath (string) --

        (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

    • TrainingTimeInSeconds (integer) --

      The training time in seconds.

    • BillableTimeInSeconds (integer) --

      The billable time in seconds. Billable time refers to the absolute wall-clock time.

      Multiply BillableTimeInSeconds by the number of instances ( InstanceCount ) in your training cluster to get the total compute time SageMaker bills you if you run distributed training. The formula is as follows: BillableTimeInSeconds * InstanceCount .

      You can calculate the savings from using managed spot training using the formula (1 - BillableTimeInSeconds / TrainingTimeInSeconds) * 100 . For example, if BillableTimeInSeconds is 100 and TrainingTimeInSeconds is 500, the savings is 80%.

    • DebugHookConfig (dict) --

      Configuration information for the Amazon SageMaker Debugger hook parameters, metric and tensor collections, and storage paths. To learn more about how to configure the DebugHookConfig parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

      • LocalPath (string) --

        Path to local storage location for metrics and tensors. Defaults to /opt/ml/output/tensors/ .

      • S3OutputPath (string) --

        Path to Amazon S3 storage location for metrics and tensors.

      • HookParameters (dict) --

        Configuration information for the Amazon SageMaker Debugger hook parameters.

        • (string) --

          • (string) --

      • CollectionConfigurations (list) --

        Configuration information for Amazon SageMaker Debugger tensor collections. To learn more about how to configure the CollectionConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

        • (dict) --

          Configuration information for the Amazon SageMaker Debugger output tensor collections.

          • CollectionName (string) --

            The name of the tensor collection. The name must be unique relative to other rule configuration names.

          • CollectionParameters (dict) --

            Parameter values for the tensor collection. The allowed parameters are "name" , "include_regex" , "reduction_config" , "save_config" , "tensor_names" , and "save_histogram" .

            • (string) --

              • (string) --

    • ExperimentConfig (dict) --

      Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the following APIs:

      • ExperimentName (string) --

        The name of an existing experiment to associate with the trial component.

      • TrialName (string) --

        The name of an existing trial to associate the trial component with. If not specified, a new trial is created.

      • TrialComponentDisplayName (string) --

        The display name for the trial component. If this key isn't specified, the display name is the trial component name.

      • RunName (string) --

        The name of the experiment run to associate with the trial component.

    • DebugRuleConfigurations (list) --

      Configuration information for Amazon SageMaker Debugger rules for debugging output tensors.

      • (dict) --

        Configuration information for SageMaker Debugger rules for debugging. To learn more about how to configure the DebugRuleConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

        • RuleConfigurationName (string) --

          The name of the rule configuration. It must be unique relative to other rule configuration names.

        • LocalPath (string) --

          Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

        • S3OutputPath (string) --

          Path to Amazon S3 storage location for rules.

        • RuleEvaluatorImage (string) --

          The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

        • InstanceType (string) --

          The instance type to deploy a custom rule for debugging a training job.

        • VolumeSizeInGB (integer) --

          The size, in GB, of the ML storage volume attached to the processing instance.

        • RuleParameters (dict) --

          Runtime configuration for rule container.

          • (string) --

            • (string) --

    • TensorBoardOutputConfig (dict) --

      Configuration of storage locations for the Amazon SageMaker Debugger TensorBoard output data.

      • LocalPath (string) --

        Path to local storage location for tensorBoard output. Defaults to /opt/ml/output/tensorboard .

      • S3OutputPath (string) --

        Path to Amazon S3 storage location for TensorBoard output.

    • DebugRuleEvaluationStatuses (list) --

      Evaluation status of Amazon SageMaker Debugger rules for debugging on a training job.

      • (dict) --

        Information about the status of the rule evaluation.

        • RuleConfigurationName (string) --

          The name of the rule configuration.

        • RuleEvaluationJobArn (string) --

          The Amazon Resource Name (ARN) of the rule evaluation job.

        • RuleEvaluationStatus (string) --

          Status of the rule evaluation.

        • StatusDetails (string) --

          Details from the rule evaluation.

        • LastModifiedTime (datetime) --

          Timestamp when the rule evaluation status was last modified.

    • ProfilerConfig (dict) --

      Configuration information for Amazon SageMaker Debugger system monitoring, framework profiling, and storage paths.

      • S3OutputPath (string) --

        Path to Amazon S3 storage location for system and framework metrics.

      • ProfilingIntervalInMilliseconds (integer) --

        A time interval for capturing system metrics in milliseconds. Available values are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

      • ProfilingParameters (dict) --

        Configuration information for capturing framework metrics. Available key strings for different profiling options are DetailedProfilingConfig , PythonProfilingConfig , and DataLoaderProfilingConfig . The following codes are configuration structures for the ProfilingParameters parameter. To learn more about how to configure the ProfilingParameters parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

        • (string) --

          • (string) --

      • DisableProfiler (boolean) --

        Configuration to turn off Amazon SageMaker Debugger's system monitoring and profiling functionality. To turn it off, set to True .

    • ProfilerRuleConfigurations (list) --

      Configuration information for Amazon SageMaker Debugger rules for profiling system and framework metrics.

      • (dict) --

        Configuration information for profiling rules.

        • RuleConfigurationName (string) --

          The name of the rule configuration. It must be unique relative to other rule configuration names.

        • LocalPath (string) --

          Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

        • S3OutputPath (string) --

          Path to Amazon S3 storage location for rules.

        • RuleEvaluatorImage (string) --

          The Amazon Elastic Container Registry Image for the managed rule evaluation.

        • InstanceType (string) --

          The instance type to deploy a custom rule for profiling a training job.

        • VolumeSizeInGB (integer) --

          The size, in GB, of the ML storage volume attached to the processing instance.

        • RuleParameters (dict) --

          Runtime configuration for rule container.

          • (string) --

            • (string) --

    • ProfilerRuleEvaluationStatuses (list) --

      Evaluation status of Amazon SageMaker Debugger rules for profiling on a training job.

      • (dict) --

        Information about the status of the rule evaluation.

        • RuleConfigurationName (string) --

          The name of the rule configuration.

        • RuleEvaluationJobArn (string) --

          The Amazon Resource Name (ARN) of the rule evaluation job.

        • RuleEvaluationStatus (string) --

          Status of the rule evaluation.

        • StatusDetails (string) --

          Details from the rule evaluation.

        • LastModifiedTime (datetime) --

          Timestamp when the rule evaluation status was last modified.

    • ProfilingStatus (string) --

      Profiling status of a training job.

    • Environment (dict) --

      The environment variables to set in the Docker container.

      • (string) --

        • (string) --

    • RetryStrategy (dict) --

      The number of times to retry the job when the job fails due to an InternalServerError .

      • MaximumRetryAttempts (integer) --

        The number of times to retry the job. When the job is retried, it's SecondaryStatus is changed to STARTING .

    • RemoteDebugConfig (dict) --

      Configuration for remote debugging. To learn more about the remote debugging functionality of SageMaker, see Access a training container through Amazon Web Services Systems Manager (SSM) for remote debugging.

      • EnableRemoteDebug (boolean) --

        If set to True, enables remote debugging.

    • InfraCheckConfig (dict) --

      Contains information about the infrastructure health check configuration for the training job.

      • EnableInfraCheck (boolean) --

        Enables an infrastructure health check.

UpdateMonitoringSchedule (updated) Link ¶
Changes (request)
{'MonitoringScheduleConfig': {'MonitoringJobDefinition': {'MonitoringResources': {'ClusterConfig': {'InstanceType': {'ml.g5.12xlarge',
                                                                                                                     'ml.g5.16xlarge',
                                                                                                                     'ml.g5.24xlarge',
                                                                                                                     'ml.g5.2xlarge',
                                                                                                                     'ml.g5.48xlarge',
                                                                                                                     'ml.g5.4xlarge',
                                                                                                                     'ml.g5.8xlarge',
                                                                                                                     'ml.g5.xlarge',
                                                                                                                     'ml.r5d.12xlarge',
                                                                                                                     'ml.r5d.16xlarge',
                                                                                                                     'ml.r5d.24xlarge',
                                                                                                                     'ml.r5d.2xlarge',
                                                                                                                     'ml.r5d.4xlarge',
                                                                                                                     'ml.r5d.8xlarge',
                                                                                                                     'ml.r5d.large',
                                                                                                                     'ml.r5d.xlarge'}}}}}}

Updates a previously created schedule.

See also: AWS API Documentation

Request Syntax

client.update_monitoring_schedule(
    MonitoringScheduleName='string',
    MonitoringScheduleConfig={
        'ScheduleConfig': {
            'ScheduleExpression': 'string',
            'DataAnalysisStartTime': 'string',
            'DataAnalysisEndTime': 'string'
        },
        'MonitoringJobDefinition': {
            'BaselineConfig': {
                'BaseliningJobName': 'string',
                'ConstraintsResource': {
                    'S3Uri': 'string'
                },
                'StatisticsResource': {
                    'S3Uri': 'string'
                }
            },
            'MonitoringInputs': [
                {
                    'EndpointInput': {
                        'EndpointName': 'string',
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string',
                        'ExcludeFeaturesAttribute': 'string'
                    },
                    'BatchTransformInput': {
                        'DataCapturedDestinationS3Uri': 'string',
                        'DatasetFormat': {
                            'Csv': {
                                'Header': True|False
                            },
                            'Json': {
                                'Line': True|False
                            },
                            'Parquet': {}

                        },
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string',
                        'ExcludeFeaturesAttribute': 'string'
                    }
                },
            ],
            'MonitoringOutputConfig': {
                'MonitoringOutputs': [
                    {
                        'S3Output': {
                            'S3Uri': 'string',
                            'LocalPath': 'string',
                            'S3UploadMode': 'Continuous'|'EndOfJob'
                        }
                    },
                ],
                'KmsKeyId': 'string'
            },
            'MonitoringResources': {
                'ClusterConfig': {
                    'InstanceCount': 123,
                    'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
                    'VolumeSizeInGB': 123,
                    'VolumeKmsKeyId': 'string'
                }
            },
            'MonitoringAppSpecification': {
                'ImageUri': 'string',
                'ContainerEntrypoint': [
                    'string',
                ],
                'ContainerArguments': [
                    'string',
                ],
                'RecordPreprocessorSourceUri': 'string',
                'PostAnalyticsProcessorSourceUri': 'string'
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123
            },
            'Environment': {
                'string': 'string'
            },
            'NetworkConfig': {
                'EnableInterContainerTrafficEncryption': True|False,
                'EnableNetworkIsolation': True|False,
                'VpcConfig': {
                    'SecurityGroupIds': [
                        'string',
                    ],
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'RoleArn': 'string'
        },
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    }
)
type MonitoringScheduleName

string

param MonitoringScheduleName

[REQUIRED]

The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an Amazon Web Services account.

type MonitoringScheduleConfig

dict

param MonitoringScheduleConfig

[REQUIRED]

The configuration object that specifies the monitoring schedule and defines the monitoring job.

  • ScheduleConfig (dict) --

    Configures the monitoring schedule.

    • ScheduleExpression (string) -- [REQUIRED]

      A cron expression that describes details about the monitoring schedule.

      The supported cron expressions are:

      • If you want to set the job to start every hour, use the following: Hourly: cron(0 * ? * * *)

      • If you want to start the job daily: cron(0 [00-23] ? * * *)

      • If you want to run the job one time, immediately, use the following keyword: NOW

      For example, the following are valid cron expressions:

      • Daily at noon UTC: cron(0 12 ? * * *)

      • Daily at midnight UTC: cron(0 0 ? * * *)

      To support running every 6, 12 hours, the following are also supported:

      cron(0 [00-23]/[01-24] ? * * *)

      For example, the following are valid cron expressions:

      • Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *)

      • Every two hours starting at midnight: cron(0 0/2 ? * * *)

      Note

      • Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.

      • We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.

      You can also specify the keyword NOW to run the monitoring job immediately, one time, without recurring.

    • DataAnalysisStartTime (string) --

      Sets the start time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to monitor the five hours of data in your dataset that precede the start of each monitoring job, you would specify: "-PT5H" .

      The start time that you specify must not precede the end time that you specify by more than 24 hours. You specify the end time with the DataAnalysisEndTime parameter.

      If you set ScheduleExpression to NOW , this parameter is required.

    • DataAnalysisEndTime (string) --

      Sets the end time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to end the window one hour before the start of each monitoring job, you would specify: "-PT1H" .

      The end time that you specify must not follow the start time that you specify by more than 24 hours. You specify the start time with the DataAnalysisStartTime parameter.

      If you set ScheduleExpression to NOW , this parameter is required.

  • MonitoringJobDefinition (dict) --

    Defines the monitoring job.

    • BaselineConfig (dict) --

      Baseline configuration used to validate that the data conforms to the specified constraints and statistics

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the monitoring job.

      • ConstraintsResource (dict) --

        The baseline constraint file in Amazon S3 that the current monitoring job should validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

      • StatisticsResource (dict) --

        The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the statistics resource.

    • MonitoringInputs (list) -- [REQUIRED]

      The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker Endpoint.

      • (dict) --

        The inputs for a monitoring job.

        • EndpointInput (dict) --

          The endpoint for a monitoring job.

          • EndpointName (string) -- [REQUIRED]

            An endpoint in customer's account which has enabled DataCaptureConfig enabled.

          • LocalPath (string) -- [REQUIRED]

            Path to the filesystem where the endpoint data is available to the container.

          • S3InputMode (string) --

            Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

          • S3DataDistributionType (string) --

            Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated

          • FeaturesAttribute (string) --

            The attributes of the input data that are the input features.

          • InferenceAttribute (string) --

            The attribute of the input data that represents the ground truth label.

          • ProbabilityAttribute (string) --

            In a classification problem, the attribute that represents the class probability.

          • ProbabilityThresholdAttribute (float) --

            The threshold for the class probability to be evaluated as a positive result.

          • StartTimeOffset (string) --

            If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • EndTimeOffset (string) --

            If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • ExcludeFeaturesAttribute (string) --

            The attributes of the input data to exclude from the analysis.

        • BatchTransformInput (dict) --

          Input object for the batch transform job.

          • DataCapturedDestinationS3Uri (string) -- [REQUIRED]

            The Amazon S3 location being used to capture the data.

          • DatasetFormat (dict) -- [REQUIRED]

            The dataset format for your batch transform job.

            • Csv (dict) --

              The CSV dataset used in the monitoring job.

              • Header (boolean) --

                Indicates if the CSV data has a header.

            • Json (dict) --

              The JSON dataset used in the monitoring job

              • Line (boolean) --

                Indicates if the file should be read as a JSON object per line.

            • Parquet (dict) --

              The Parquet dataset used in the monitoring job

          • LocalPath (string) -- [REQUIRED]

            Path to the filesystem where the batch transform data is available to the container.

          • S3InputMode (string) --

            Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

          • S3DataDistributionType (string) --

            Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated

          • FeaturesAttribute (string) --

            The attributes of the input data that are the input features.

          • InferenceAttribute (string) --

            The attribute of the input data that represents the ground truth label.

          • ProbabilityAttribute (string) --

            In a classification problem, the attribute that represents the class probability.

          • ProbabilityThresholdAttribute (float) --

            The threshold for the class probability to be evaluated as a positive result.

          • StartTimeOffset (string) --

            If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • EndTimeOffset (string) --

            If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs.

          • ExcludeFeaturesAttribute (string) --

            The attributes of the input data to exclude from the analysis.

    • MonitoringOutputConfig (dict) -- [REQUIRED]

      The array of outputs from the monitoring job to be uploaded to Amazon S3.

      • MonitoringOutputs (list) -- [REQUIRED]

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) -- [REQUIRED]

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) -- [REQUIRED]

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) -- [REQUIRED]

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • MonitoringResources (dict) -- [REQUIRED]

      Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job. In distributed processing, you specify more than one instance.

      • ClusterConfig (dict) -- [REQUIRED]

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) -- [REQUIRED]

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) -- [REQUIRED]

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) -- [REQUIRED]

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The Key Management Service (KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • MonitoringAppSpecification (dict) -- [REQUIRED]

      Configures the monitoring job to run a specified Docker container image.

      • ImageUri (string) -- [REQUIRED]

        The container image to be run by the monitoring job.

      • ContainerEntrypoint (list) --

        Specifies the entrypoint for a container used to run the monitoring job.

        • (string) --

      • ContainerArguments (list) --

        An array of arguments for the container used to run the monitoring job.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

    • StoppingCondition (dict) --

      Specifies a time limit for how long the monitoring job is allowed to run.

      • MaxRuntimeInSeconds (integer) -- [REQUIRED]

        The maximum runtime allowed in seconds.

        Note

        The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds.

    • Environment (dict) --

      Sets the environment variables in the Docker container.

      • (string) --

        • (string) --

    • NetworkConfig (dict) --

      Specifies networking options for an monitoring job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

      • VpcConfig (dict) --

        Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

        • SecurityGroupIds (list) -- [REQUIRED]

          The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) -- [REQUIRED]

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

          • (string) --

    • RoleArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

  • MonitoringJobDefinitionName (string) --

    The name of the monitoring job definition to schedule.

  • MonitoringType (string) --

    The type of the monitoring job definition to schedule.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleArn': 'string'
}

Response Structure

  • (dict) --

    • MonitoringScheduleArn (string) --

      The Amazon Resource Name (ARN) of the monitoring schedule.

UpdateTrainingJob (updated) Link ¶
Changes (request)
{'ProfilerRuleConfigurations': {'InstanceType': {'ml.g5.12xlarge',
                                                 'ml.g5.16xlarge',
                                                 'ml.g5.24xlarge',
                                                 'ml.g5.2xlarge',
                                                 'ml.g5.48xlarge',
                                                 'ml.g5.4xlarge',
                                                 'ml.g5.8xlarge',
                                                 'ml.g5.xlarge',
                                                 'ml.r5d.12xlarge',
                                                 'ml.r5d.16xlarge',
                                                 'ml.r5d.24xlarge',
                                                 'ml.r5d.2xlarge',
                                                 'ml.r5d.4xlarge',
                                                 'ml.r5d.8xlarge',
                                                 'ml.r5d.large',
                                                 'ml.r5d.xlarge'}}}

Update a model training job to request a new Debugger profiling configuration or to change warm pool retention length.

See also: AWS API Documentation

Request Syntax

client.update_training_job(
    TrainingJobName='string',
    ProfilerConfig={
        'S3OutputPath': 'string',
        'ProfilingIntervalInMilliseconds': 123,
        'ProfilingParameters': {
            'string': 'string'
        },
        'DisableProfiler': True|False
    },
    ProfilerRuleConfigurations=[
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.16xlarge'|'ml.g5.12xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.r5d.large'|'ml.r5d.xlarge'|'ml.r5d.2xlarge'|'ml.r5d.4xlarge'|'ml.r5d.8xlarge'|'ml.r5d.12xlarge'|'ml.r5d.16xlarge'|'ml.r5d.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    ResourceConfig={
        'KeepAlivePeriodInSeconds': 123
    },
    RemoteDebugConfig={
        'EnableRemoteDebug': True|False
    }
)
type TrainingJobName

string

param TrainingJobName

[REQUIRED]

The name of a training job to update the Debugger profiling configuration.

type ProfilerConfig

dict

param ProfilerConfig

Configuration information for Amazon SageMaker Debugger system monitoring, framework profiling, and storage paths.

  • S3OutputPath (string) --

    Path to Amazon S3 storage location for system and framework metrics.

  • ProfilingIntervalInMilliseconds (integer) --

    A time interval for capturing system metrics in milliseconds. Available values are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

  • ProfilingParameters (dict) --

    Configuration information for capturing framework metrics. Available key strings for different profiling options are DetailedProfilingConfig , PythonProfilingConfig , and DataLoaderProfilingConfig . The following codes are configuration structures for the ProfilingParameters parameter. To learn more about how to configure the ProfilingParameters parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job.

    • (string) --

      • (string) --

  • DisableProfiler (boolean) --

    To turn off Amazon SageMaker Debugger monitoring and profiling while a training job is in progress, set to True .

type ProfilerRuleConfigurations

list

param ProfilerRuleConfigurations

Configuration information for Amazon SageMaker Debugger rules for profiling system and framework metrics.

  • (dict) --

    Configuration information for profiling rules.

    • RuleConfigurationName (string) -- [REQUIRED]

      The name of the rule configuration. It must be unique relative to other rule configuration names.

    • LocalPath (string) --

      Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

    • S3OutputPath (string) --

      Path to Amazon S3 storage location for rules.

    • RuleEvaluatorImage (string) -- [REQUIRED]

      The Amazon Elastic Container Registry Image for the managed rule evaluation.

    • InstanceType (string) --

      The instance type to deploy a custom rule for profiling a training job.

    • VolumeSizeInGB (integer) --

      The size, in GB, of the ML storage volume attached to the processing instance.

    • RuleParameters (dict) --

      Runtime configuration for rule container.

      • (string) --

        • (string) --

type ResourceConfig

dict

param ResourceConfig

The training job ResourceConfig to update warm pool retention length.

  • KeepAlivePeriodInSeconds (integer) -- [REQUIRED]

    The KeepAlivePeriodInSeconds value specified in the ResourceConfig to update.

type RemoteDebugConfig

dict

param RemoteDebugConfig

Configuration for remote debugging while the training job is running. You can update the remote debugging configuration when the SecondaryStatus of the job is Downloading or Training .To learn more about the remote debugging functionality of SageMaker, see Access a training container through Amazon Web Services Systems Manager (SSM) for remote debugging.

  • EnableRemoteDebug (boolean) --

    If set to True, enables remote debugging.

rtype

dict

returns

Response Syntax

{
    'TrainingJobArn': 'string'
}

Response Structure

  • (dict) --

    • TrainingJobArn (string) --

      The Amazon Resource Name (ARN) of the training job.