HyperParameterTuningJobConfig - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.


Configures a hyperparameter tuning job.



The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning job.

Type: HyperParameterTuningJobObjective object

Required: No


The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.

Type: ParameterRanges object

Required: No


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

Type: ResourceLimits object

Required: Yes


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

Type: String

Valid Values: Bayesian | Random

Required: Yes


Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. This can be one of the following values (the default value is OFF):


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


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.

Type: String

Valid Values: Off | Auto

Required: No


The tuning job's completion criteria.

Type: TuningJobCompletionCriteria object

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: