2022/09/06 - Amazon SageMaker Service - 2 updated api methods
Changes This release adds HyperParameterTuningJob type in Search API.
{'Resource': {'HyperParameterTuningJob'}}
An auto-complete API for the search functionality in the Amazon SageMaker console. It returns suggestions of possible matches for the property name to use in Search queries. Provides suggestions for HyperParameters , Tags , and Metrics .
See also: AWS API Documentation
Request Syntax
client.get_search_suggestions( Resource='TrainingJob'|'Experiment'|'ExperimentTrial'|'ExperimentTrialComponent'|'Endpoint'|'ModelPackage'|'ModelPackageGroup'|'Pipeline'|'PipelineExecution'|'FeatureGroup'|'Project'|'FeatureMetadata'|'HyperParameterTuningJob', SuggestionQuery={ 'PropertyNameQuery': { 'PropertyNameHint': 'string' } } )
string
[REQUIRED]
The name of the Amazon SageMaker resource to search for.
dict
Limits the property names that are included in the response.
PropertyNameQuery (dict) --
Defines a property name hint. Only property names that begin with the specified hint are included in the response.
PropertyNameHint (string) -- [REQUIRED]
Text that begins a property's name.
dict
Response Syntax
{ 'PropertyNameSuggestions': [ { 'PropertyName': 'string' }, ] }
Response Structure
(dict) --
PropertyNameSuggestions (list) --
A list of property names for a Resource that match a SuggestionQuery .
(dict) --
A property name returned from a GetSearchSuggestions call that specifies a value in the PropertyNameQuery field.
PropertyName (string) --
A suggested property name based on what you entered in the search textbox in the Amazon SageMaker console.
{'Resource': {'HyperParameterTuningJob'}}Response
{'Results': {'HyperParameterTuningJob': {'BestTrainingJob': {'CreationTime': 'timestamp', 'FailureReason': 'string', 'FinalHyperParameterTuningJobObjectiveMetric': {'MetricName': 'string', 'Type': 'Maximize ' '| ' 'Minimize', 'Value': 'float'}, 'ObjectiveStatus': 'Succeeded ' '| ' 'Pending ' '| ' 'Failed', 'TrainingEndTime': 'timestamp', 'TrainingJobArn': 'string', 'TrainingJobDefinitionName': 'string', 'TrainingJobName': 'string', 'TrainingJobStatus': 'InProgress ' '| ' 'Completed ' '| ' 'Failed ' '| ' 'Stopping ' '| ' 'Stopped', 'TrainingStartTime': 'timestamp', 'TunedHyperParameters': {'string': 'string'}, 'TuningJobName': 'string'}, 'CreationTime': 'timestamp', 'FailureReason': 'string', 'HyperParameterTuningEndTime': 'timestamp', 'HyperParameterTuningJobArn': 'string', 'HyperParameterTuningJobConfig': {'HyperParameterTuningJobObjective': {'MetricName': 'string', 'Type': 'Maximize ' '| ' 'Minimize'}, 'ParameterRanges': {'CategoricalParameterRanges': [{'Name': 'string', 'Values': ['string']}], 'ContinuousParameterRanges': [{'MaxValue': 'string', 'MinValue': 'string', 'Name': 'string', 'ScalingType': 'Auto ' '| ' 'Linear ' '| ' 'Logarithmic ' '| ' 'ReverseLogarithmic'}], 'IntegerParameterRanges': [{'MaxValue': 'string', 'MinValue': 'string', 'Name': 'string', 'ScalingType': 'Auto ' '| ' 'Linear ' '| ' 'Logarithmic ' '| ' 'ReverseLogarithmic'}]}, 'ResourceLimits': {'MaxNumberOfTrainingJobs': 'integer', 'MaxParallelTrainingJobs': 'integer'}, 'Strategy': 'Bayesian ' '| ' 'Random', 'TrainingJobEarlyStoppingType': 'Off ' '| ' 'Auto', 'TuningJobCompletionCriteria': {'TargetObjectiveMetricValue': 'float'}}, 'HyperParameterTuningJobName': 'string', 'HyperParameterTuningJobStatus': 'Completed ' '| ' 'InProgress ' '| ' 'Failed ' '| ' 'Stopped ' '| ' 'Stopping', 'LastModifiedTime': 'timestamp', 'ObjectiveStatusCounters': {'Failed': 'integer', 'Pending': 'integer', 'Succeeded': 'integer'}, 'OverallBestTrainingJob': {'CreationTime': 'timestamp', 'FailureReason': 'string', 'FinalHyperParameterTuningJobObjectiveMetric': {'MetricName': 'string', 'Type': 'Maximize ' '| ' 'Minimize', 'Value': 'float'}, 'ObjectiveStatus': 'Succeeded ' '| ' 'Pending ' '| ' 'Failed', 'TrainingEndTime': 'timestamp', 'TrainingJobArn': 'string', 'TrainingJobDefinitionName': 'string', 'TrainingJobName': 'string', 'TrainingJobStatus': 'InProgress ' '| ' 'Completed ' '| ' 'Failed ' '| ' 'Stopping ' '| ' 'Stopped', 'TrainingStartTime': 'timestamp', 'TunedHyperParameters': {'string': 'string'}, 'TuningJobName': 'string'}, 'Tags': [{'Key': 'string', 'Value': 'string'}], 'TrainingJobDefinition': {'AlgorithmSpecification': {'AlgorithmName': 'string', 'MetricDefinitions': [{'Name': 'string', 'Regex': 'string'}], 'TrainingImage': 'string', 'TrainingInputMode': 'Pipe ' '| ' 'File ' '| ' 'FastFile'}, 'CheckpointConfig': {'LocalPath': 'string', 'S3Uri': 'string'}, 'DefinitionName': 'string', 'EnableInterContainerTrafficEncryption': 'boolean', 'EnableManagedSpotTraining': 'boolean', 'EnableNetworkIsolation': 'boolean', 'HyperParameterRanges': {'CategoricalParameterRanges': [{'Name': 'string', 'Values': ['string']}], 'ContinuousParameterRanges': [{'MaxValue': 'string', 'MinValue': 'string', 'Name': 'string', 'ScalingType': 'Auto ' '| ' 'Linear ' '| ' 'Logarithmic ' '| ' 'ReverseLogarithmic'}], 'IntegerParameterRanges': [{'MaxValue': 'string', 'MinValue': 'string', 'Name': 'string', 'ScalingType': 'Auto ' '| ' 'Linear ' '| ' 'Logarithmic ' '| ' 'ReverseLogarithmic'}]}, 'HyperParameterTuningResourceConfig': {'AllocationStrategy': 'Prioritized', 'InstanceConfigs': [{'InstanceCount': 'integer', '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.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', 'VolumeSizeInGB': 'integer'}], 'InstanceCount': 'integer', '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.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', 'VolumeKmsKeyId': 'string', 'VolumeSizeInGB': 'integer'}, 'InputDataConfig': [{'ChannelName': 'string', 'CompressionType': 'None ' '| ' 'Gzip', 'ContentType': 'string', 'DataSource': {'FileSystemDataSource': {'DirectoryPath': 'string', 'FileSystemAccessMode': 'rw ' '| ' 'ro', 'FileSystemId': 'string', 'FileSystemType': 'EFS ' '| ' 'FSxLustre'}, 'S3DataSource': {'AttributeNames': ['string'], 'InstanceGroupNames': ['string'], 'S3DataDistributionType': 'FullyReplicated ' '| ' 'ShardedByS3Key', 'S3DataType': 'ManifestFile ' '| ' 'S3Prefix ' '| ' 'AugmentedManifestFile', 'S3Uri': 'string'}}, 'InputMode': 'Pipe ' '| ' 'File ' '| ' 'FastFile', 'RecordWrapperType': 'None ' '| ' 'RecordIO', 'ShuffleConfig': {'Seed': 'long'}}], 'OutputDataConfig': {'KmsKeyId': 'string', 'S3OutputPath': 'string'}, 'ResourceConfig': {'InstanceCount': 'integer', 'InstanceGroups': [{'InstanceCount': 'integer', 'InstanceGroupName': 'string', '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.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'}], '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.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', 'VolumeKmsKeyId': 'string', 'VolumeSizeInGB': 'integer'}, 'RetryStrategy': {'MaximumRetryAttempts': 'integer'}, 'RoleArn': 'string', 'StaticHyperParameters': {'string': 'string'}, 'StoppingCondition': {'MaxRuntimeInSeconds': 'integer', 'MaxWaitTimeInSeconds': 'integer'}, 'TuningObjective': {'MetricName': 'string', 'Type': 'Maximize ' '| ' 'Minimize'}, 'VpcConfig': {'SecurityGroupIds': ['string'], 'Subnets': ['string']}}, 'TrainingJobDefinitions': [{'AlgorithmSpecification': {'AlgorithmName': 'string', 'MetricDefinitions': [{'Name': 'string', 'Regex': 'string'}], 'TrainingImage': 'string', 'TrainingInputMode': 'Pipe ' '| ' 'File ' '| ' 'FastFile'}, 'CheckpointConfig': {'LocalPath': 'string', 'S3Uri': 'string'}, 'DefinitionName': 'string', 'EnableInterContainerTrafficEncryption': 'boolean', 'EnableManagedSpotTraining': 'boolean', 'EnableNetworkIsolation': 'boolean', 'HyperParameterRanges': {'CategoricalParameterRanges': [{'Name': 'string', 'Values': ['string']}], 'ContinuousParameterRanges': [{'MaxValue': 'string', 'MinValue': 'string', 'Name': 'string', 'ScalingType': 'Auto ' '| ' 'Linear ' '| ' 'Logarithmic ' '| ' 'ReverseLogarithmic'}], 'IntegerParameterRanges': [{'MaxValue': 'string', 'MinValue': 'string', 'Name': 'string', 'ScalingType': 'Auto ' '| ' 'Linear ' '| ' 'Logarithmic ' '| ' 'ReverseLogarithmic'}]}, 'HyperParameterTuningResourceConfig': {'AllocationStrategy': 'Prioritized', 'InstanceConfigs': [{'InstanceCount': 'integer', '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.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', 'VolumeSizeInGB': 'integer'}], 'InstanceCount': 'integer', '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.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', 'VolumeKmsKeyId': 'string', 'VolumeSizeInGB': 'integer'}, 'InputDataConfig': [{'ChannelName': 'string', 'CompressionType': 'None ' '| ' 'Gzip', 'ContentType': 'string', 'DataSource': {'FileSystemDataSource': {'DirectoryPath': 'string', 'FileSystemAccessMode': 'rw ' '| ' 'ro', 'FileSystemId': 'string', 'FileSystemType': 'EFS ' '| ' 'FSxLustre'}, 'S3DataSource': {'AttributeNames': ['string'], 'InstanceGroupNames': ['string'], 'S3DataDistributionType': 'FullyReplicated ' '| ' 'ShardedByS3Key', 'S3DataType': 'ManifestFile ' '| ' 'S3Prefix ' '| ' 'AugmentedManifestFile', 'S3Uri': 'string'}}, 'InputMode': 'Pipe ' '| ' 'File ' '| ' 'FastFile', 'RecordWrapperType': 'None ' '| ' 'RecordIO', 'ShuffleConfig': {'Seed': 'long'}}], 'OutputDataConfig': {'KmsKeyId': 'string', 'S3OutputPath': 'string'}, 'ResourceConfig': {'InstanceCount': 'integer', 'InstanceGroups': [{'InstanceCount': 'integer', 'InstanceGroupName': 'string', '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.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'}], '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.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', 'VolumeKmsKeyId': 'string', 'VolumeSizeInGB': 'integer'}, 'RetryStrategy': {'MaximumRetryAttempts': 'integer'}, 'RoleArn': 'string', 'StaticHyperParameters': {'string': 'string'}, 'StoppingCondition': {'MaxRuntimeInSeconds': 'integer', 'MaxWaitTimeInSeconds': 'integer'}, 'TuningObjective': {'MetricName': 'string', 'Type': 'Maximize ' '| ' 'Minimize'}, 'VpcConfig': {'SecurityGroupIds': ['string'], 'Subnets': ['string']}}], 'TrainingJobStatusCounters': {'Completed': 'integer', 'InProgress': 'integer', 'NonRetryableError': 'integer', 'RetryableError': 'integer', 'Stopped': 'integer'}, 'WarmStartConfig': {'ParentHyperParameterTuningJobs': [{'HyperParameterTuningJobName': 'string'}], 'WarmStartType': 'IdenticalDataAndAlgorithm ' '| ' 'TransferLearning'}}}}
Finds Amazon SageMaker resources that match a search query. Matching resources are returned as a list of SearchRecord objects in the response. You can sort the search results by any resource property in a ascending or descending order.
You can query against the following value types: numeric, text, Boolean, and timestamp.
See also: AWS API Documentation
Request Syntax
client.search( Resource='TrainingJob'|'Experiment'|'ExperimentTrial'|'ExperimentTrialComponent'|'Endpoint'|'ModelPackage'|'ModelPackageGroup'|'Pipeline'|'PipelineExecution'|'FeatureGroup'|'Project'|'FeatureMetadata'|'HyperParameterTuningJob', SearchExpression={ 'Filters': [ { 'Name': 'string', 'Operator': 'Equals'|'NotEquals'|'GreaterThan'|'GreaterThanOrEqualTo'|'LessThan'|'LessThanOrEqualTo'|'Contains'|'Exists'|'NotExists'|'In', 'Value': 'string' }, ], 'NestedFilters': [ { 'NestedPropertyName': 'string', 'Filters': [ { 'Name': 'string', 'Operator': 'Equals'|'NotEquals'|'GreaterThan'|'GreaterThanOrEqualTo'|'LessThan'|'LessThanOrEqualTo'|'Contains'|'Exists'|'NotExists'|'In', 'Value': 'string' }, ] }, ], 'SubExpressions': [ {'... recursive ...'}, ], 'Operator': 'And'|'Or' }, SortBy='string', SortOrder='Ascending'|'Descending', NextToken='string', MaxResults=123 )
string
[REQUIRED]
The name of the Amazon SageMaker resource to search for.
dict
A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive SubExpressions , NestedFilters , and Filters that can be included in a SearchExpression object is 50.
Filters (list) --
A list of filter objects.
(dict) --
A conditional statement for a search expression that includes a resource property, a Boolean operator, and a value. Resources that match the statement are returned in the results from the Search API.
If you specify a Value , but not an Operator , Amazon SageMaker uses the equals operator.
In search, there are several property types:
Metrics
To define a metric filter, enter a value using the form "Metrics.<name>" , where <name> is a metric name. For example, the following filter searches for training jobs with an "accuracy" metric greater than "0.9" :
{
"Name": "Metrics.accuracy",
"Operator": "GreaterThan",
"Value": "0.9"
}
HyperParameters
To define a hyperparameter filter, enter a value with the form "HyperParameters.<name>" . Decimal hyperparameter values are treated as a decimal in a comparison if the specified Value is also a decimal value. If the specified Value is an integer, the decimal hyperparameter values are treated as integers. For example, the following filter is satisfied by training jobs with a "learning_rate" hyperparameter that is less than "0.5" :
{
"Name": "HyperParameters.learning_rate",
"Operator": "LessThan",
"Value": "0.5"
}
Tags
To define a tag filter, enter a value with the form Tags.<key> .
Name (string) -- [REQUIRED]
A resource property name. For example, TrainingJobName . For valid property names, see SearchRecord. You must specify a valid property for the resource.
Operator (string) --
A Boolean binary operator that is used to evaluate the filter. The operator field contains one of the following values:
Equals
The value of Name equals Value .
NotEquals
The value of Name doesn't equal Value .
Exists
The Name property exists.
NotExists
The Name property does not exist.
GreaterThan
The value of Name is greater than Value . Not supported for text properties.
GreaterThanOrEqualTo
The value of Name is greater than or equal to Value . Not supported for text properties.
LessThan
The value of Name is less than Value . Not supported for text properties.
LessThanOrEqualTo
The value of Name is less than or equal to Value . Not supported for text properties.
In
The value of Name is one of the comma delimited strings in Value . Only supported for text properties.
Contains
The value of Name contains the string Value . Only supported for text properties.
A SearchExpression can include the Contains operator multiple times when the value of Name is one of the following:
Experiment.DisplayName
Experiment.ExperimentName
Experiment.Tags
Trial.DisplayName
Trial.TrialName
Trial.Tags
TrialComponent.DisplayName
TrialComponent.TrialComponentName
TrialComponent.Tags
TrialComponent.InputArtifacts
TrialComponent.OutputArtifacts
A SearchExpression can include only one Contains operator for all other values of Name . In these cases, if you include multiple Contains operators in the SearchExpression , the result is the following error message: " 'CONTAINS' operator usage limit of 1 exceeded. "
Value (string) --
A value used with Name and Operator to determine which resources satisfy the filter's condition. For numerical properties, Value must be an integer or floating-point decimal. For timestamp properties, Value must be an ISO 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS .
NestedFilters (list) --
A list of nested filter objects.
(dict) --
A list of nested Filter objects. A resource must satisfy the conditions of all filters to be included in the results returned from the Search API.
For example, to filter on a training job's InputDataConfig property with a specific channel name and S3Uri prefix, define the following filters:
'{Name:"InputDataConfig.ChannelName", "Operator":"Equals", "Value":"train"}',
'{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"Contains", "Value":"mybucket/catdata"}'
NestedPropertyName (string) -- [REQUIRED]
The name of the property to use in the nested filters. The value must match a listed property name, such as InputDataConfig .
Filters (list) -- [REQUIRED]
A list of filters. Each filter acts on a property. Filters must contain at least one Filters value. For example, a NestedFilters call might include a filter on the PropertyName parameter of the InputDataConfig property: InputDataConfig.DataSource.S3DataSource.S3Uri .
(dict) --
A conditional statement for a search expression that includes a resource property, a Boolean operator, and a value. Resources that match the statement are returned in the results from the Search API.
If you specify a Value , but not an Operator , Amazon SageMaker uses the equals operator.
In search, there are several property types:
Metrics
To define a metric filter, enter a value using the form "Metrics.<name>" , where <name> is a metric name. For example, the following filter searches for training jobs with an "accuracy" metric greater than "0.9" :
{
"Name": "Metrics.accuracy",
"Operator": "GreaterThan",
"Value": "0.9"
}
HyperParameters
To define a hyperparameter filter, enter a value with the form "HyperParameters.<name>" . Decimal hyperparameter values are treated as a decimal in a comparison if the specified Value is also a decimal value. If the specified Value is an integer, the decimal hyperparameter values are treated as integers. For example, the following filter is satisfied by training jobs with a "learning_rate" hyperparameter that is less than "0.5" :
{
"Name": "HyperParameters.learning_rate",
"Operator": "LessThan",
"Value": "0.5"
}
Tags
To define a tag filter, enter a value with the form Tags.<key> .
Name (string) -- [REQUIRED]
A resource property name. For example, TrainingJobName . For valid property names, see SearchRecord. You must specify a valid property for the resource.
Operator (string) --
A Boolean binary operator that is used to evaluate the filter. The operator field contains one of the following values:
Equals
The value of Name equals Value .
NotEquals
The value of Name doesn't equal Value .
Exists
The Name property exists.
NotExists
The Name property does not exist.
GreaterThan
The value of Name is greater than Value . Not supported for text properties.
GreaterThanOrEqualTo
The value of Name is greater than or equal to Value . Not supported for text properties.
LessThan
The value of Name is less than Value . Not supported for text properties.
LessThanOrEqualTo
The value of Name is less than or equal to Value . Not supported for text properties.
In
The value of Name is one of the comma delimited strings in Value . Only supported for text properties.
Contains
The value of Name contains the string Value . Only supported for text properties.
A SearchExpression can include the Contains operator multiple times when the value of Name is one of the following:
Experiment.DisplayName
Experiment.ExperimentName
Experiment.Tags
Trial.DisplayName
Trial.TrialName
Trial.Tags
TrialComponent.DisplayName
TrialComponent.TrialComponentName
TrialComponent.Tags
TrialComponent.InputArtifacts
TrialComponent.OutputArtifacts
A SearchExpression can include only one Contains operator for all other values of Name . In these cases, if you include multiple Contains operators in the SearchExpression , the result is the following error message: " 'CONTAINS' operator usage limit of 1 exceeded. "
Value (string) --
A value used with Name and Operator to determine which resources satisfy the filter's condition. For numerical properties, Value must be an integer or floating-point decimal. For timestamp properties, Value must be an ISO 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS .
SubExpressions (list) --
A list of search expression objects.
(dict) --
A multi-expression that searches for the specified resource or resources in a search. All resource objects that satisfy the expression's condition are included in the search results. You must specify at least one subexpression, filter, or nested filter. A SearchExpression can contain up to twenty elements.
A SearchExpression contains the following components:
A list of Filter objects. Each filter defines a simple Boolean expression comprised of a resource property name, Boolean operator, and value.
A list of NestedFilter objects. Each nested filter defines a list of Boolean expressions using a list of resource properties. A nested filter is satisfied if a single object in the list satisfies all Boolean expressions.
A list of SearchExpression objects. A search expression object can be nested in a list of search expression objects.
A Boolean operator: And or Or .
Operator (string) --
A Boolean operator used to evaluate the search expression. If you want every conditional statement in all lists to be satisfied for the entire search expression to be true, specify And . If only a single conditional statement needs to be true for the entire search expression to be true, specify Or . The default value is And .
string
The name of the resource property used to sort the SearchResults . The default is LastModifiedTime .
string
How SearchResults are ordered. Valid values are Ascending or Descending . The default is Descending .
string
If more than MaxResults resources match the specified SearchExpression , the response includes a NextToken . The NextToken can be passed to the next SearchRequest to continue retrieving results.
integer
The maximum number of results to return.
dict
Response Syntax
# This section is too large to render. # Please see the AWS API Documentation linked below.
Response Structure
# This section is too large to render. # Please see the AWS API Documentation linked below.