/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Configures a hyperparameter tuning job.See Also:
AWS
* API Reference
Specifies how hyperparameter tuning chooses the combinations of
* hyperparameter values to use for the training job it launches. To use the
* Bayesian search strategy, set this to Bayesian. To randomly search,
* set it to Random. For information about search strategies, see How
* Hyperparameter Tuning Works.
Specifies how hyperparameter tuning chooses the combinations of
* hyperparameter values to use for the training job it launches. To use the
* Bayesian search strategy, set this to Bayesian. To randomly search,
* set it to Random. For information about search strategies, see How
* Hyperparameter Tuning Works.
Specifies how hyperparameter tuning chooses the combinations of
* hyperparameter values to use for the training job it launches. To use the
* Bayesian search strategy, set this to Bayesian. To randomly search,
* set it to Random. For information about search strategies, see How
* Hyperparameter Tuning Works.
Specifies how hyperparameter tuning chooses the combinations of
* hyperparameter values to use for the training job it launches. To use the
* Bayesian search strategy, set this to Bayesian. To randomly search,
* set it to Random. For information about search strategies, see How
* Hyperparameter Tuning Works.
Specifies how hyperparameter tuning chooses the combinations of
* hyperparameter values to use for the training job it launches. To use the
* Bayesian search strategy, set this to Bayesian. To randomly search,
* set it to Random. For information about search strategies, see How
* Hyperparameter Tuning Works.
Specifies how hyperparameter tuning chooses the combinations of
* hyperparameter values to use for the training job it launches. To use the
* Bayesian search strategy, set this to Bayesian. To randomly search,
* set it to Random. For information about search strategies, see How
* Hyperparameter Tuning Works.
The HyperParameterTuningJobObjective object that specifies the * objective metric for this tuning job.
*/ inline const HyperParameterTuningJobObjective& GetHyperParameterTuningJobObjective() const{ return m_hyperParameterTuningJobObjective; } /** *The HyperParameterTuningJobObjective object that specifies the * objective metric for this tuning job.
*/ inline bool HyperParameterTuningJobObjectiveHasBeenSet() const { return m_hyperParameterTuningJobObjectiveHasBeenSet; } /** *The HyperParameterTuningJobObjective object that specifies the * objective metric for this tuning job.
*/ inline void SetHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = value; } /** *The HyperParameterTuningJobObjective object that specifies the * objective metric for this tuning job.
*/ inline void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjective&& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = std::move(value); } /** *The HyperParameterTuningJobObjective object that specifies the * objective metric for this tuning job.
*/ inline HyperParameterTuningJobConfig& WithHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective& value) { SetHyperParameterTuningJobObjective(value); return *this;} /** *The HyperParameterTuningJobObjective object that specifies the * objective metric for this tuning job.
*/ inline HyperParameterTuningJobConfig& WithHyperParameterTuningJobObjective(HyperParameterTuningJobObjective&& value) { SetHyperParameterTuningJobObjective(std::move(value)); return *this;} /** *The ResourceLimits object that specifies the maximum number of * training jobs and parallel training jobs for this tuning job.
*/ inline const ResourceLimits& GetResourceLimits() const{ return m_resourceLimits; } /** *The ResourceLimits object that specifies the maximum number of * training jobs and parallel training jobs for this tuning job.
*/ inline bool ResourceLimitsHasBeenSet() const { return m_resourceLimitsHasBeenSet; } /** *The ResourceLimits object that specifies the maximum number of * training jobs and parallel training jobs for this tuning job.
*/ inline void SetResourceLimits(const ResourceLimits& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = value; } /** *The ResourceLimits object that specifies the maximum number of * training jobs and parallel training jobs for this tuning job.
*/ inline void SetResourceLimits(ResourceLimits&& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = std::move(value); } /** *The ResourceLimits object that specifies the maximum number of * training jobs and parallel training jobs for this tuning job.
*/ inline HyperParameterTuningJobConfig& WithResourceLimits(const ResourceLimits& value) { SetResourceLimits(value); return *this;} /** *The ResourceLimits object that specifies the maximum number of * training jobs and parallel training jobs for this tuning job.
*/ inline HyperParameterTuningJobConfig& WithResourceLimits(ResourceLimits&& value) { SetResourceLimits(std::move(value)); return *this;} /** *The ParameterRanges object that specifies the ranges of * hyperparameters that this tuning job searches.
*/ inline const ParameterRanges& GetParameterRanges() const{ return m_parameterRanges; } /** *The ParameterRanges object that specifies the ranges of * hyperparameters that this tuning job searches.
*/ inline bool ParameterRangesHasBeenSet() const { return m_parameterRangesHasBeenSet; } /** *The ParameterRanges object that specifies the ranges of * hyperparameters that this tuning job searches.
*/ inline void SetParameterRanges(const ParameterRanges& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = value; } /** *The ParameterRanges object that specifies the ranges of * hyperparameters that this tuning job searches.
*/ inline void SetParameterRanges(ParameterRanges&& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = std::move(value); } /** *The ParameterRanges object that specifies the ranges of * hyperparameters that this tuning job searches.
*/ inline HyperParameterTuningJobConfig& WithParameterRanges(const ParameterRanges& value) { SetParameterRanges(value); return *this;} /** *The ParameterRanges object that specifies the ranges of * hyperparameters that this tuning job searches.
*/ inline HyperParameterTuningJobConfig& WithParameterRanges(ParameterRanges&& value) { SetParameterRanges(std::move(value)); return *this;} /** *Specifies whether to use early stopping for training jobs launched by the
* hyperparameter tuning job. This can be one of the following values (the default
* value is OFF):
Training jobs launched * by the hyperparameter tuning job do not use early stopping.
Amazon 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.
Specifies whether to use early stopping for training jobs launched by the
* hyperparameter tuning job. This can be one of the following values (the default
* value is OFF):
Training jobs launched * by the hyperparameter tuning job do not use early stopping.
Amazon 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.
Specifies whether to use early stopping for training jobs launched by the
* hyperparameter tuning job. This can be one of the following values (the default
* value is OFF):
Training jobs launched * by the hyperparameter tuning job do not use early stopping.
Amazon 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.
Specifies whether to use early stopping for training jobs launched by the
* hyperparameter tuning job. This can be one of the following values (the default
* value is OFF):
Training jobs launched * by the hyperparameter tuning job do not use early stopping.
Amazon 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.
Specifies whether to use early stopping for training jobs launched by the
* hyperparameter tuning job. This can be one of the following values (the default
* value is OFF):
Training jobs launched * by the hyperparameter tuning job do not use early stopping.
Amazon 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.
Specifies whether to use early stopping for training jobs launched by the
* hyperparameter tuning job. This can be one of the following values (the default
* value is OFF):
Training jobs launched * by the hyperparameter tuning job do not use early stopping.
Amazon 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.
The tuning job's completion criteria.
*/ inline const TuningJobCompletionCriteria& GetTuningJobCompletionCriteria() const{ return m_tuningJobCompletionCriteria; } /** *The tuning job's completion criteria.
*/ inline bool TuningJobCompletionCriteriaHasBeenSet() const { return m_tuningJobCompletionCriteriaHasBeenSet; } /** *The tuning job's completion criteria.
*/ inline void SetTuningJobCompletionCriteria(const TuningJobCompletionCriteria& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = value; } /** *The tuning job's completion criteria.
*/ inline void SetTuningJobCompletionCriteria(TuningJobCompletionCriteria&& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = std::move(value); } /** *The tuning job's completion criteria.
*/ inline HyperParameterTuningJobConfig& WithTuningJobCompletionCriteria(const TuningJobCompletionCriteria& value) { SetTuningJobCompletionCriteria(value); return *this;} /** *The tuning job's completion criteria.
*/ inline HyperParameterTuningJobConfig& WithTuningJobCompletionCriteria(TuningJobCompletionCriteria&& value) { SetTuningJobCompletionCriteria(std::move(value)); return *this;} private: HyperParameterTuningJobStrategyType m_strategy; bool m_strategyHasBeenSet; HyperParameterTuningJobObjective m_hyperParameterTuningJobObjective; bool m_hyperParameterTuningJobObjectiveHasBeenSet; ResourceLimits m_resourceLimits; bool m_resourceLimitsHasBeenSet; ParameterRanges m_parameterRanges; bool m_parameterRangesHasBeenSet; TrainingJobEarlyStoppingType m_trainingJobEarlyStoppingType; bool m_trainingJobEarlyStoppingTypeHasBeenSet; TuningJobCompletionCriteria m_tuningJobCompletionCriteria; bool m_tuningJobCompletionCriteriaHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws