Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data HyperParameterTuningJobConfig = HyperParameterTuningJobConfig' {
- hyperParameterTuningJobObjective :: Maybe HyperParameterTuningJobObjective
- parameterRanges :: Maybe ParameterRanges
- randomSeed :: Maybe Natural
- strategyConfig :: Maybe HyperParameterTuningJobStrategyConfig
- trainingJobEarlyStoppingType :: Maybe TrainingJobEarlyStoppingType
- tuningJobCompletionCriteria :: Maybe TuningJobCompletionCriteria
- strategy :: HyperParameterTuningJobStrategyType
- resourceLimits :: ResourceLimits
- newHyperParameterTuningJobConfig :: HyperParameterTuningJobStrategyType -> ResourceLimits -> HyperParameterTuningJobConfig
- hyperParameterTuningJobConfig_hyperParameterTuningJobObjective :: Lens' HyperParameterTuningJobConfig (Maybe HyperParameterTuningJobObjective)
- hyperParameterTuningJobConfig_parameterRanges :: Lens' HyperParameterTuningJobConfig (Maybe ParameterRanges)
- hyperParameterTuningJobConfig_randomSeed :: Lens' HyperParameterTuningJobConfig (Maybe Natural)
- hyperParameterTuningJobConfig_strategyConfig :: Lens' HyperParameterTuningJobConfig (Maybe HyperParameterTuningJobStrategyConfig)
- hyperParameterTuningJobConfig_trainingJobEarlyStoppingType :: Lens' HyperParameterTuningJobConfig (Maybe TrainingJobEarlyStoppingType)
- hyperParameterTuningJobConfig_tuningJobCompletionCriteria :: Lens' HyperParameterTuningJobConfig (Maybe TuningJobCompletionCriteria)
- hyperParameterTuningJobConfig_strategy :: Lens' HyperParameterTuningJobConfig HyperParameterTuningJobStrategyType
- hyperParameterTuningJobConfig_resourceLimits :: Lens' HyperParameterTuningJobConfig ResourceLimits
Documentation
data HyperParameterTuningJobConfig Source #
Configures a hyperparameter tuning job.
See: newHyperParameterTuningJobConfig
smart constructor.
HyperParameterTuningJobConfig' | |
|
Instances
newHyperParameterTuningJobConfig Source #
Create a value of HyperParameterTuningJobConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:hyperParameterTuningJobObjective:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_hyperParameterTuningJobObjective
- The HyperParameterTuningJobObjective specifies the objective metric used
to evaluate the performance of training jobs launched by this tuning
job.
$sel:parameterRanges:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_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.
$sel:randomSeed:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_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.
$sel:strategyConfig:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_strategyConfig
- The configuration for the Hyperband
optimization strategy. This
parameter should be provided only if Hyperband
is selected as the
strategy for HyperParameterTuningJobConfig
.
$sel:trainingJobEarlyStoppingType:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_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
):
- 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.
$sel:tuningJobCompletionCriteria:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_tuningJobCompletionCriteria
- The tuning job's completion criteria.
$sel:strategy:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_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.
$sel:resourceLimits:HyperParameterTuningJobConfig'
, hyperParameterTuningJobConfig_resourceLimits
- The ResourceLimits object that specifies the maximum number of training
and parallel training jobs that can be used for this hyperparameter
tuning job.
hyperParameterTuningJobConfig_hyperParameterTuningJobObjective :: Lens' HyperParameterTuningJobConfig (Maybe HyperParameterTuningJobObjective) Source #
The HyperParameterTuningJobObjective specifies the objective metric used to evaluate the performance of training jobs launched by this tuning job.
hyperParameterTuningJobConfig_parameterRanges :: Lens' HyperParameterTuningJobConfig (Maybe ParameterRanges) Source #
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.
hyperParameterTuningJobConfig_randomSeed :: Lens' HyperParameterTuningJobConfig (Maybe Natural) Source #
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.
hyperParameterTuningJobConfig_strategyConfig :: Lens' HyperParameterTuningJobConfig (Maybe HyperParameterTuningJobStrategyConfig) Source #
The configuration for the Hyperband
optimization strategy. This
parameter should be provided only if Hyperband
is selected as the
strategy for HyperParameterTuningJobConfig
.
hyperParameterTuningJobConfig_trainingJobEarlyStoppingType :: Lens' HyperParameterTuningJobConfig (Maybe TrainingJobEarlyStoppingType) Source #
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
):
- 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.
hyperParameterTuningJobConfig_tuningJobCompletionCriteria :: Lens' HyperParameterTuningJobConfig (Maybe TuningJobCompletionCriteria) Source #
The tuning job's completion criteria.
hyperParameterTuningJobConfig_strategy :: Lens' HyperParameterTuningJobConfig HyperParameterTuningJobStrategyType Source #
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.
hyperParameterTuningJobConfig_resourceLimits :: Lens' HyperParameterTuningJobConfig ResourceLimits Source #
The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.