This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::SageMaker::HyperParameterTuningJob
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.
Important
Do not include any security-sensitive information including account access IDs, secrets, or tokens in any hyperparameter fields. As part of the shared responsibility model, you are responsible for any potential exposure, unauthorized access, or compromise of your sensitive data if caused by any security-sensitive information included in the request hyperparameter variable or plain text fields..
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::SageMaker::HyperParameterTuningJob", "Properties" : { "Autotune" :Autotune, "HyperParameterTuningJobConfig" :HyperParameterTuningJobConfig, "HyperParameterTuningJobName" :String, "Tags" :[ Tag, ... ], "TrainingJobDefinition" :TrainingJobDefinition, "TrainingJobDefinitions" :[ TrainingJobDefinition, ... ], "WarmStartConfig" :HyperParameterTuningJobWarmStartConfig} }
YAML
Type: AWS::SageMaker::HyperParameterTuningJob Properties: Autotune:AutotuneHyperParameterTuningJobConfig:HyperParameterTuningJobConfigHyperParameterTuningJobName:StringTags:- TagTrainingJobDefinition:TrainingJobDefinitionTrainingJobDefinitions:- TrainingJobDefinitionWarmStartConfig:HyperParameterTuningJobWarmStartConfig
Properties
Autotune-
A flag to indicate if you want to use Autotune to automatically find optimal values 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.
Required: No
Type: Autotune
Update requires: Replacement
-
HyperParameterTuningJobConfig-
Configures a hyperparameter tuning job.
Required: Yes
Type: HyperParameterTuningJobConfig
Update requires: Replacement
HyperParameterTuningJobName-
The name of a hyperparameter tuning job.
Required: Yes
Type: String
Pattern:
[a-zA-Z0-9](-*[a-zA-Z0-9]){0,31}Minimum:
1Maximum:
32Update requires: Replacement
-
The tags associated with a hyperparameter tuning job. For more information see Tagging AWS resources.
Required: No
Type: Array of Tag
Maximum:
50Update requires: Replacement
TrainingJobDefinition-
Defines the input needed to run a training job using the algorithm.
Required: No
Type: TrainingJobDefinition
Update requires: Replacement
TrainingJobDefinitions-
The job definitions included in a hyperparameter tuning job.
Required: No
Type: Array of TrainingJobDefinition
Minimum:
1Maximum:
10Update requires: Replacement
WarmStartConfigProperty description not available.
Required: No
Type: HyperParameterTuningJobWarmStartConfig
Update requires: Replacement
Return values
Ref
Fn::GetAtt
CreationTime-
The time that a hyperparameter tuning job was created.
HyperParameterTuningJobArn-
The Amazon Resource Name (ARN) of a hyperparameter tuning job.
HyperParameterTuningJobStatus-
The status of a hyperparameter tuning job.