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 booleanfinal booleanequalsBySdkFields(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 inthashCode()The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.final ParameterRangesThe 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 IntegerA value used to initialize a pseudo-random number generator.final ResourceLimitsThe 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 StringSpecifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches.The configuration for theHyperbandoptimization strategy.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.final StringSpecifies 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,
strategywill 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,
strategywill 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
Hyperbandoptimization strategy. This parameter should be provided only ifHyperbandis selected as the strategy forHyperParameterTuningJobConfig.- Returns:
- The configuration for the
Hyperbandoptimization strategy. This parameter should be provided only ifHyperbandis 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
Hyperbandstrategy has its own advanced internal early stopping mechanism,TrainingJobEarlyStoppingTypemust beOFFto 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,
trainingJobEarlyStoppingTypewill 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
Hyperbandstrategy has its own advanced internal early stopping mechanism,TrainingJobEarlyStoppingTypemust beOFFto 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
Hyperbandstrategy has its own advanced internal early stopping mechanism,TrainingJobEarlyStoppingTypemust beOFFto 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,
trainingJobEarlyStoppingTypewill 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
Hyperbandstrategy has its own advanced internal early stopping mechanism,TrainingJobEarlyStoppingTypemust beOFFto 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HyperParameterTuningJobConfig.Builder,HyperParameterTuningJobConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-