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 object that specifies the objective metric for this tuning job.
|
HyperParameterTuningJobConfig.Builder |
hyperParameterTuningJobObjective(HyperParameterTuningJobObjective hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective object that specifies the objective metric for 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.
|
HyperParameterTuningJobConfig.Builder |
parameterRanges(ParameterRanges parameterRanges)
The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.
|
default HyperParameterTuningJobConfig.Builder |
resourceLimits(Consumer<ResourceLimits.Builder> resourceLimits)
The ResourceLimits object that specifies the maximum number of training jobs and parallel training
jobs for this tuning job.
|
HyperParameterTuningJobConfig.Builder |
resourceLimits(ResourceLimits resourceLimits)
The ResourceLimits object that specifies the maximum number of training jobs and parallel training
jobs for this 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.
|
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, sdkFields
copy
applyMutation, build
HyperParameterTuningJobConfig.Builder strategy(String strategy)
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.
strategy
- 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.HyperParameterTuningJobStrategyType
,
HyperParameterTuningJobStrategyType
HyperParameterTuningJobConfig.Builder strategy(HyperParameterTuningJobStrategyType strategy)
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.
strategy
- 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.HyperParameterTuningJobStrategyType
,
HyperParameterTuningJobStrategyType
HyperParameterTuningJobConfig.Builder hyperParameterTuningJobObjective(HyperParameterTuningJobObjective hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning job.
hyperParameterTuningJobObjective
- The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning
job.default HyperParameterTuningJobConfig.Builder hyperParameterTuningJobObjective(Consumer<HyperParameterTuningJobObjective.Builder> hyperParameterTuningJobObjective)
The HyperParameterTuningJobObjective object that specifies the objective metric for 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.Builder
hyperParameterTuningJobObjective(HyperParameterTuningJobObjective)
HyperParameterTuningJobConfig.Builder resourceLimits(ResourceLimits resourceLimits)
The ResourceLimits object that specifies the maximum number of training jobs and parallel training jobs for this tuning job.
resourceLimits
- The ResourceLimits object that specifies the maximum number of training jobs and parallel
training jobs for this tuning job.default HyperParameterTuningJobConfig.Builder resourceLimits(Consumer<ResourceLimits.Builder> resourceLimits)
The ResourceLimits object that specifies the maximum number of training jobs and parallel training jobs for this 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.Builder
resourceLimits(ResourceLimits)
HyperParameterTuningJobConfig.Builder parameterRanges(ParameterRanges parameterRanges)
The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.
parameterRanges
- The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job
searches.default HyperParameterTuningJobConfig.Builder parameterRanges(Consumer<ParameterRanges.Builder> parameterRanges)
The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.
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.Builder
parameterRanges(ParameterRanges)
HyperParameterTuningJobConfig.Builder trainingJobEarlyStoppingType(String trainingJobEarlyStoppingType)
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.
trainingJobEarlyStoppingType
- 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.
TrainingJobEarlyStoppingType
,
TrainingJobEarlyStoppingType
HyperParameterTuningJobConfig.Builder trainingJobEarlyStoppingType(TrainingJobEarlyStoppingType trainingJobEarlyStoppingType)
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.
trainingJobEarlyStoppingType
- 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.
TrainingJobEarlyStoppingType
,
TrainingJobEarlyStoppingType
HyperParameterTuningJobConfig.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.Builder
tuningJobCompletionCriteria(TuningJobCompletionCriteria)
Copyright © 2022. All rights reserved.