@Generated(value="software.amazon.awssdk:codegen") public final class HyperParameterTuningJobConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HyperParameterTuningJobConfig.Builder,HyperParameterTuningJobConfig>
Configures a hyperparameter tuning job.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HyperParameterTuningJobConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HyperParameterTuningJobConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HyperParameterTuningJobObjective |
hyperParameterTuningJobObjective()
The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning job.
|
ParameterRanges |
parameterRanges()
The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.
|
ResourceLimits |
resourceLimits()
The ResourceLimits object that specifies the maximum number of training jobs and parallel training jobs
for this tuning job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HyperParameterTuningJobConfig.Builder> |
serializableBuilderClass() |
HyperParameterTuningJobStrategyType |
strategy()
Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job
it launches.
|
String |
strategyAsString()
Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job
it launches.
|
HyperParameterTuningJobStrategyConfig |
strategyConfig()
The configuration for the
Hyperband optimization strategy. |
HyperParameterTuningJobConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TrainingJobEarlyStoppingType |
trainingJobEarlyStoppingType()
Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.
|
String |
trainingJobEarlyStoppingTypeAsString()
Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job.
|
TuningJobCompletionCriteria |
tuningJobCompletionCriteria()
The tuning job's completion criteria.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
If the service returns an enum value that is not available in the current SDK version, strategy will
return HyperParameterTuningJobStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service
is available from strategyAsString().
HyperParameterTuningJobStrategyTypepublic final String 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
return HyperParameterTuningJobStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service
is available from strategyAsString().
HyperParameterTuningJobStrategyTypepublic final HyperParameterTuningJobStrategyConfig strategyConfig()
The configuration for the Hyperband optimization strategy. This parameter should be provided only if
Hyperband is selected as the strategy for HyperParameterTuningJobConfig.
Hyperband optimization strategy. This parameter should be provided
only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig
.public final HyperParameterTuningJobObjective hyperParameterTuningJobObjective()
The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning job.
public final ResourceLimits resourceLimits()
The ResourceLimits object that specifies the maximum number of training jobs and parallel training jobs for this tuning job.
public final ParameterRanges parameterRanges()
The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.
public final 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.
If the service returns an enum value that is not available in the current SDK version,
trainingJobEarlyStoppingType will return TrainingJobEarlyStoppingType.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from trainingJobEarlyStoppingTypeAsString().
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.
TrainingJobEarlyStoppingTypepublic final String 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 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.
If the service returns an enum value that is not available in the current SDK version,
trainingJobEarlyStoppingType will return TrainingJobEarlyStoppingType.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from trainingJobEarlyStoppingTypeAsString().
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.
TrainingJobEarlyStoppingTypepublic final TuningJobCompletionCriteria tuningJobCompletionCriteria()
The tuning job's completion criteria.
public HyperParameterTuningJobConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HyperParameterTuningJobConfig.Builder,HyperParameterTuningJobConfig>public static HyperParameterTuningJobConfig.Builder builder()
public static Class<? extends HyperParameterTuningJobConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.