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

Specifies ranges of integer, continuous, and categorical hyperparameters that * a hyperparameter tuning job searches. The hyperparameter tuning job launches * training jobs with hyperparameter values within these ranges to find the * combination of values that result in the training job with the best performance * as measured by the objective metric of the hyperparameter tuning job.

*

The maximum number of items specified for Array Members refers * to the maximum number of hyperparameters for each range and also the maximum for * the hyperparameter tuning job itself. That is, the sum of the number of * hyperparameters for all the ranges can't exceed the maximum number * specified.

See Also:

AWS * API Reference

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

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline const Aws::Vector& GetIntegerParameterRanges() const{ return m_integerParameterRanges; } /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline bool IntegerParameterRangesHasBeenSet() const { return m_integerParameterRangesHasBeenSet; } /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline void SetIntegerParameterRanges(const Aws::Vector& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges = value; } /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline void SetIntegerParameterRanges(Aws::Vector&& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges = std::move(value); } /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& WithIntegerParameterRanges(const Aws::Vector& value) { SetIntegerParameterRanges(value); return *this;} /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& WithIntegerParameterRanges(Aws::Vector&& value) { SetIntegerParameterRanges(std::move(value)); return *this;} /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& AddIntegerParameterRanges(const IntegerParameterRange& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges.push_back(value); return *this; } /** *

The array of IntegerParameterRange * objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& AddIntegerParameterRanges(IntegerParameterRange&& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges.push_back(std::move(value)); return *this; } /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline const Aws::Vector& GetContinuousParameterRanges() const{ return m_continuousParameterRanges; } /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline bool ContinuousParameterRangesHasBeenSet() const { return m_continuousParameterRangesHasBeenSet; } /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline void SetContinuousParameterRanges(const Aws::Vector& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges = value; } /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline void SetContinuousParameterRanges(Aws::Vector&& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges = std::move(value); } /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& WithContinuousParameterRanges(const Aws::Vector& value) { SetContinuousParameterRanges(value); return *this;} /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& WithContinuousParameterRanges(Aws::Vector&& value) { SetContinuousParameterRanges(std::move(value)); return *this;} /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& AddContinuousParameterRanges(const ContinuousParameterRange& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges.push_back(value); return *this; } /** *

The array of ContinuousParameterRange * objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& AddContinuousParameterRanges(ContinuousParameterRange&& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges.push_back(std::move(value)); return *this; } /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline const Aws::Vector& GetCategoricalParameterRanges() const{ return m_categoricalParameterRanges; } /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline bool CategoricalParameterRangesHasBeenSet() const { return m_categoricalParameterRangesHasBeenSet; } /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline void SetCategoricalParameterRanges(const Aws::Vector& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges = value; } /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline void SetCategoricalParameterRanges(Aws::Vector&& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges = std::move(value); } /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& WithCategoricalParameterRanges(const Aws::Vector& value) { SetCategoricalParameterRanges(value); return *this;} /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& WithCategoricalParameterRanges(Aws::Vector&& value) { SetCategoricalParameterRanges(std::move(value)); return *this;} /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& AddCategoricalParameterRanges(const CategoricalParameterRange& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges.push_back(value); return *this; } /** *

The array of CategoricalParameterRange * objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches.

*/ inline ParameterRanges& AddCategoricalParameterRanges(CategoricalParameterRange&& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges.push_back(std::move(value)); return *this; } /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline const Aws::Vector& GetAutoParameters() const{ return m_autoParameters; } /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline bool AutoParametersHasBeenSet() const { return m_autoParametersHasBeenSet; } /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline void SetAutoParameters(const Aws::Vector& value) { m_autoParametersHasBeenSet = true; m_autoParameters = value; } /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline void SetAutoParameters(Aws::Vector&& value) { m_autoParametersHasBeenSet = true; m_autoParameters = std::move(value); } /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline ParameterRanges& WithAutoParameters(const Aws::Vector& value) { SetAutoParameters(value); return *this;} /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline ParameterRanges& WithAutoParameters(Aws::Vector&& value) { SetAutoParameters(std::move(value)); return *this;} /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline ParameterRanges& AddAutoParameters(const AutoParameter& value) { m_autoParametersHasBeenSet = true; m_autoParameters.push_back(value); return *this; } /** *

A list containing hyperparameter names and example values to be used by * Autotune to determine optimal ranges for your tuning job.

*/ inline ParameterRanges& AddAutoParameters(AutoParameter&& value) { m_autoParametersHasBeenSet = true; m_autoParameters.push_back(std::move(value)); return *this; } private: Aws::Vector m_integerParameterRanges; bool m_integerParameterRangesHasBeenSet = false; Aws::Vector m_continuousParameterRanges; bool m_continuousParameterRangesHasBeenSet = false; Aws::Vector m_categoricalParameterRanges; bool m_categoricalParameterRangesHasBeenSet = false; Aws::Vector m_autoParameters; bool m_autoParametersHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws