public static interface HyperParameterTuningJobConfig.Builder extends SdkPojo, CopyableBuilder<HyperParameterTuningJobConfig.Builder,HyperParameterTuningJobConfig>
| Modifier and Type | Method and Description |
|---|---|
default HyperParameterTuningJobConfig.Builder |
hyperParameterTuningJobObjective(Consumer<HyperParameterTuningJobObjective.Builder> hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance
of training jobs launched by this tuning job.
|
HyperParameterTuningJobConfig.Builder |
hyperParameterTuningJobObjective(HyperParameterTuningJobObjective hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance
of training jobs launched by this tuning job.
|
default HyperParameterTuningJobConfig.Builder |
parameterRanges(Consumer<ParameterRanges.Builder> parameterRanges)
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.
|
HyperParameterTuningJobConfig.Builder |
parameterRanges(ParameterRanges parameterRanges)
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.
|
HyperParameterTuningJobConfig.Builder |
randomSeed(Integer randomSeed)
A value used to initialize a pseudo-random number generator.
|
default HyperParameterTuningJobConfig.Builder |
resourceLimits(Consumer<ResourceLimits.Builder> resourceLimits)
The ResourceLimits object that specifies the maximum number of training and parallel training jobs
that can be used for this hyperparameter tuning job.
|
HyperParameterTuningJobConfig.Builder |
resourceLimits(ResourceLimits resourceLimits)
The ResourceLimits object that specifies the maximum number of training and parallel training jobs
that can be used for this hyperparameter tuning job.
|
HyperParameterTuningJobConfig.Builder |
strategy(HyperParameterTuningJobStrategyType strategy)
Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training
job it launches.
|
HyperParameterTuningJobConfig.Builder |
strategy(String strategy)
Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training
job it launches.
|
default HyperParameterTuningJobConfig.Builder |
strategyConfig(Consumer<HyperParameterTuningJobStrategyConfig.Builder> strategyConfig)
The configuration for the
Hyperband optimization strategy. |
HyperParameterTuningJobConfig.Builder |
strategyConfig(HyperParameterTuningJobStrategyConfig strategyConfig)
The configuration for the
Hyperband optimization strategy. |
HyperParameterTuningJobConfig.Builder |
trainingJobEarlyStoppingType(String trainingJobEarlyStoppingType)
Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.
|
HyperParameterTuningJobConfig.Builder |
trainingJobEarlyStoppingType(TrainingJobEarlyStoppingType trainingJobEarlyStoppingType)
Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.
|
default HyperParameterTuningJobConfig.Builder |
tuningJobCompletionCriteria(Consumer<TuningJobCompletionCriteria.Builder> tuningJobCompletionCriteria)
The tuning job's completion criteria.
|
HyperParameterTuningJobConfig.Builder |
tuningJobCompletionCriteria(TuningJobCompletionCriteria tuningJobCompletionCriteria)
The tuning job's completion criteria.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHyperParameterTuningJobConfig.Builder strategy(String strategy)
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.
strategy - 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.HyperParameterTuningJobStrategyType,
HyperParameterTuningJobStrategyTypeHyperParameterTuningJobConfig.Builder strategy(HyperParameterTuningJobStrategyType strategy)
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.
strategy - 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.HyperParameterTuningJobStrategyType,
HyperParameterTuningJobStrategyTypeHyperParameterTuningJobConfig.Builder strategyConfig(HyperParameterTuningJobStrategyConfig strategyConfig)
The configuration for the Hyperband optimization strategy. This parameter should be provided
only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig.
strategyConfig - The configuration for the Hyperband optimization strategy. This parameter should be
provided only if Hyperband is selected as the strategy for
HyperParameterTuningJobConfig.default HyperParameterTuningJobConfig.Builder strategyConfig(Consumer<HyperParameterTuningJobStrategyConfig.Builder> strategyConfig)
The configuration for the Hyperband optimization strategy. This parameter should be provided
only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig.
HyperParameterTuningJobStrategyConfig.Builder avoiding the need to create one manually via
HyperParameterTuningJobStrategyConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to strategyConfig(HyperParameterTuningJobStrategyConfig).
strategyConfig - a consumer that will call methods on HyperParameterTuningJobStrategyConfig.BuilderstrategyConfig(HyperParameterTuningJobStrategyConfig)HyperParameterTuningJobConfig.Builder hyperParameterTuningJobObjective(HyperParameterTuningJobObjective hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.
hyperParameterTuningJobObjective - The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the
performance of training jobs launched by this tuning job.default HyperParameterTuningJobConfig.Builder hyperParameterTuningJobObjective(Consumer<HyperParameterTuningJobObjective.Builder> hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.
This is a convenience method that creates an instance of theHyperParameterTuningJobObjective.Builder
avoiding the need to create one manually via HyperParameterTuningJobObjective.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to
hyperParameterTuningJobObjective(HyperParameterTuningJobObjective).
hyperParameterTuningJobObjective - a consumer that will call methods on HyperParameterTuningJobObjective.BuilderhyperParameterTuningJobObjective(HyperParameterTuningJobObjective)HyperParameterTuningJobConfig.Builder resourceLimits(ResourceLimits resourceLimits)
The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.
resourceLimits - The ResourceLimits object that specifies the maximum number of training and parallel training
jobs that can be used for this hyperparameter tuning job.default HyperParameterTuningJobConfig.Builder resourceLimits(Consumer<ResourceLimits.Builder> resourceLimits)
The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.
This is a convenience method that creates an instance of theResourceLimits.Builder avoiding the need
to create one manually via ResourceLimits.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to resourceLimits(ResourceLimits).
resourceLimits - a consumer that will call methods on ResourceLimits.BuilderresourceLimits(ResourceLimits)HyperParameterTuningJobConfig.Builder parameterRanges(ParameterRanges parameterRanges)
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.
parameterRanges - 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.default HyperParameterTuningJobConfig.Builder parameterRanges(Consumer<ParameterRanges.Builder> parameterRanges)
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.
This is a convenience method that creates an instance of theParameterRanges.Builder avoiding the
need to create one manually via ParameterRanges.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to parameterRanges(ParameterRanges).
parameterRanges - a consumer that will call methods on ParameterRanges.BuilderparameterRanges(ParameterRanges)HyperParameterTuningJobConfig.Builder trainingJobEarlyStoppingType(String trainingJobEarlyStoppingType)
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):
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.
trainingJobEarlyStoppingType - 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):
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.
TrainingJobEarlyStoppingType,
TrainingJobEarlyStoppingTypeHyperParameterTuningJobConfig.Builder trainingJobEarlyStoppingType(TrainingJobEarlyStoppingType trainingJobEarlyStoppingType)
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):
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.
trainingJobEarlyStoppingType - 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):
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.
TrainingJobEarlyStoppingType,
TrainingJobEarlyStoppingTypeHyperParameterTuningJobConfig.Builder tuningJobCompletionCriteria(TuningJobCompletionCriteria tuningJobCompletionCriteria)
The tuning job's completion criteria.
tuningJobCompletionCriteria - The tuning job's completion criteria.default HyperParameterTuningJobConfig.Builder tuningJobCompletionCriteria(Consumer<TuningJobCompletionCriteria.Builder> tuningJobCompletionCriteria)
The tuning job's completion criteria.
This is a convenience method that creates an instance of theTuningJobCompletionCriteria.Builder
avoiding the need to create one manually via TuningJobCompletionCriteria.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to tuningJobCompletionCriteria(TuningJobCompletionCriteria).
tuningJobCompletionCriteria - a consumer that will call methods on TuningJobCompletionCriteria.BuildertuningJobCompletionCriteria(TuningJobCompletionCriteria)HyperParameterTuningJobConfig.Builder randomSeed(Integer randomSeed)
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.
randomSeed - 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.Copyright © 2023. All rights reserved.