/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

A flag to indicate if you want to use Autotune to automatically find optimal * values for the following fields:

  • ParameterRanges: * The names and ranges of parameters that a hyperparameter tuning job can * optimize.

  • ResourceLimits: * The maximum resources that can be used for a training job. These resources * include the maximum number of training jobs, the maximum runtime of a tuning * job, and the maximum number of training jobs to run at the same time.

  • *
  • TrainingJobEarlyStoppingType: * A flag that specifies whether or not to use early stopping for training jobs * launched by a hyperparameter tuning job.

  • RetryStrategy: * The number of times to retry a training job.

  • Strategy: * Specifies how hyperparameter tuning chooses the combinations of hyperparameter * values to use for the training jobs that it launches.

  • ConvergenceDetected: * A flag to indicate that Automatic model tuning (AMT) has detected model * convergence.

See Also:

AWS * API Reference

*/ class Autotune { public: AWS_SAGEMAKER_API Autotune(); AWS_SAGEMAKER_API Autotune(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Autotune& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Set Mode to Enabled if you want to use * Autotune.

*/ inline const AutotuneMode& GetMode() const{ return m_mode; } /** *

Set Mode to Enabled if you want to use * Autotune.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

Set Mode to Enabled if you want to use * Autotune.

*/ inline void SetMode(const AutotuneMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

Set Mode to Enabled if you want to use * Autotune.

*/ inline void SetMode(AutotuneMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

Set Mode to Enabled if you want to use * Autotune.

*/ inline Autotune& WithMode(const AutotuneMode& value) { SetMode(value); return *this;} /** *

Set Mode to Enabled if you want to use * Autotune.

*/ inline Autotune& WithMode(AutotuneMode&& value) { SetMode(std::move(value)); return *this;} private: AutotuneMode m_mode; bool m_modeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws