Interface HyperbandStrategyConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<HyperbandStrategyConfig.Builder,HyperbandStrategyConfig>,SdkBuilder<HyperbandStrategyConfig.Builder,HyperbandStrategyConfig>,SdkPojo
- Enclosing class:
- HyperbandStrategyConfig
public static interface HyperbandStrategyConfig.Builder extends SdkPojo, CopyableBuilder<HyperbandStrategyConfig.Builder,HyperbandStrategyConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HyperbandStrategyConfig.BuildermaxResource(Integer maxResource)The maximum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter tuning job.HyperbandStrategyConfig.BuilderminResource(Integer minResource)The minimum number of resources (such as epochs) that can be used by a training job launched by a hyperparameter tuning job.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
minResource
HyperbandStrategyConfig.Builder minResource(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
MinResourcehas not been reached, the training job is not stopped byHyperband.- Parameters:
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 forMinResourcehas not been reached, the training job is not stopped byHyperband.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResource
HyperbandStrategyConfig.Builder maxResource(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
MaxResourcevalue, it is stopped. If a value forMaxResourceis not provided, andHyperbandis selected as the hyperparameter tuning strategy,HyperbandTrainingattempts to inferMaxResourcefrom the following keys (if present) in StaticsHyperParameters:-
epochs -
numepochs -
n-epochs -
n_epochs -
num_epochs
If
HyperbandStrategyConfigis unable to infer a value forMaxResource, 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 distributed 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.- Parameters:
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 theMaxResourcevalue, it is stopped. If a value forMaxResourceis not provided, andHyperbandis selected as the hyperparameter tuning strategy,HyperbandTrainingattempts to inferMaxResourcefrom the following keys (if present) in StaticsHyperParameters:-
epochs -
numepochs -
n-epochs -
n_epochs -
num_epochs
If
HyperbandStrategyConfigis unable to infer a value forMaxResource, 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 distributed 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.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-