Struct aws_sdk_sagemaker::model::hyperband_strategy_config::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for HyperbandStrategyConfig
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn min_resource(self, input: i32) -> Self
pub fn min_resource(self, input: i32) -> Self
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
.
sourcepub fn set_min_resource(self, input: Option<i32>) -> Self
pub fn set_min_resource(self, input: Option<i32>) -> Self
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
.
sourcepub fn max_resource(self, input: i32) -> Self
pub fn max_resource(self, input: i32) -> Self
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.
sourcepub fn set_max_resource(self, input: Option<i32>) -> Self
pub fn set_max_resource(self, input: Option<i32>) -> Self
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.
sourcepub fn build(self) -> HyperbandStrategyConfig
pub fn build(self) -> HyperbandStrategyConfig
Consumes the builder and constructs a HyperbandStrategyConfig
.