@Generated(value="software.amazon.awssdk:codegen") public final class HyperbandStrategyConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HyperbandStrategyConfig.Builder,HyperbandStrategyConfig>
The configuration for Hyperband, a multi-fidelity based hyperparameter tuning strategy.
Hyperband uses the final and intermediate results of a training job to dynamically allocate resources to
utilized hyperparameter configurations while automatically stopping under-performing configurations. This parameter
should be provided only if Hyperband is selected as the StrategyConfig under the
HyperParameterTuningJobConfig API.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HyperbandStrategyConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HyperbandStrategyConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
maxResource()
The maximum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter
tuning job.
|
Integer |
minResource()
The minimum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter
tuning job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HyperbandStrategyConfig.Builder> |
serializableBuilderClass() |
HyperbandStrategyConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer minResource()
The minimum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter
tuning job. If the value for MinResource has not been reached, the training job will not be stopped
by Hyperband.
MinResource has not been reached, the training
job will not be stopped by Hyperband.public final Integer maxResource()
The maximum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter
tuning job. Once a job reaches the MaxResource value, it is stopped. If a value for
MaxResource is not provided, and Hyperband is selected as the hyperparameter tuning
strategy, HyperbandTrainingJ attempts to infer MaxResource from the following keys (if
present) in StaticsHyperParameters:
epochs
numepochs
n-epochs
n_epochs
num_epochs
If HyperbandStrategyConfig is unable to infer a value for MaxResource, it generates a
validation error. The maximum value is 20,000 epochs. All metrics that correspond to an objective metric are used
to derive early stopping
decisions. For distributive training jobs,
ensure that duplicate metrics are not printed in the logs across the individual nodes in a training job. If
multiple nodes are publishing duplicate or incorrect metrics, training jobs may make an incorrect stopping
decision and stop the job prematurely.
MaxResource value, it is stopped. If a
value for MaxResource is not provided, and Hyperband is selected as the
hyperparameter tuning strategy, HyperbandTrainingJ attempts to infer
MaxResource from the following keys (if present) in StaticsHyperParameters:
epochs
numepochs
n-epochs
n_epochs
num_epochs
If HyperbandStrategyConfig is unable to infer a value for MaxResource, it
generates a validation error. The maximum value is 20,000 epochs. All metrics that correspond to an
objective metric are used to derive early
stopping decisions. For distributive
training jobs, ensure that duplicate metrics are not printed in the logs across the individual nodes in a
training job. If multiple nodes are publishing duplicate or incorrect metrics, training jobs may make an
incorrect stopping decision and stop the job prematurely.
public HyperbandStrategyConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HyperbandStrategyConfig.Builder,HyperbandStrategyConfig>public static HyperbandStrategyConfig.Builder builder()
public static Class<? extends HyperbandStrategyConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.