Class HyperParameterTuningJobConfig
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<HyperParameterTuningJobConfig.Builder,
HyperParameterTuningJobConfig>
Configures a hyperparameter tuning job.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.final 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.final Integer
A value used to initialize a pseudo-random number generator.final ResourceLimits
The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.static Class
<? extends HyperParameterTuningJobConfig.Builder> strategy()
Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches.final String
Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches.The configuration for theHyperband
optimization strategy.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.final String
Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.The tuning job's completion criteria.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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.
If the service returns an enum value that is not available in the current SDK version,
strategy
will returnHyperParameterTuningJobStrategyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstrategyAsString()
.- Returns:
- 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.
- See Also:
-
strategyAsString
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.
If the service returns an enum value that is not available in the current SDK version,
strategy
will returnHyperParameterTuningJobStrategyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstrategyAsString()
.- Returns:
- 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.
- See Also:
-
strategyConfig
The configuration for the
Hyperband
optimization strategy. This parameter should be provided only ifHyperband
is selected as the strategy forHyperParameterTuningJobConfig
.- Returns:
- The configuration for the
Hyperband
optimization strategy. This parameter should be provided only ifHyperband
is selected as the strategy forHyperParameterTuningJobConfig
.
-
hyperParameterTuningJobObjective
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.
- Returns:
- The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this 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.
- Returns:
- The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.
-
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.
- Returns:
- 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.
-
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 beOFF
to useHyperband
. This parameter can take on one of the following values (the default value isOFF
):- OFF
-
Training jobs launched by the hyperparameter tuning job do not use early stopping.
- AUTO
-
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.
If the service returns an enum value that is not available in the current SDK version,
trainingJobEarlyStoppingType
will returnTrainingJobEarlyStoppingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtrainingJobEarlyStoppingTypeAsString()
.- Returns:
- 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 beOFF
to useHyperband
. This parameter can take on one of the following values (the default value isOFF
):- OFF
-
Training jobs launched by the hyperparameter tuning job do not use early stopping.
- AUTO
-
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.
- See Also:
-
trainingJobEarlyStoppingTypeAsString
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 beOFF
to useHyperband
. This parameter can take on one of the following values (the default value isOFF
):- OFF
-
Training jobs launched by the hyperparameter tuning job do not use early stopping.
- AUTO
-
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.
If the service returns an enum value that is not available in the current SDK version,
trainingJobEarlyStoppingType
will returnTrainingJobEarlyStoppingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtrainingJobEarlyStoppingTypeAsString()
.- Returns:
- 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 beOFF
to useHyperband
. This parameter can take on one of the following values (the default value isOFF
):- OFF
-
Training jobs launched by the hyperparameter tuning job do not use early stopping.
- AUTO
-
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.
- See Also:
-
tuningJobCompletionCriteria
The tuning job's completion criteria.
- Returns:
- The tuning job's completion criteria.
-
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.
- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<HyperParameterTuningJobConfig.Builder,
HyperParameterTuningJobConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-