/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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.

*

You can specify a maximum of 20 hyperparameters that a hyperparameter tuning * job can search over. Every possible value of a categorical parameter range * counts against this limit.

See Also:

AWS * API Reference

*/ class AWS_SAGEMAKER_API ParameterRanges { public: ParameterRanges(); ParameterRanges(Aws::Utils::Json::JsonView jsonValue); ParameterRanges& operator=(Aws::Utils::Json::JsonView jsonValue); 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; } private: Aws::Vector m_integerParameterRanges; bool m_integerParameterRangesHasBeenSet; Aws::Vector m_continuousParameterRanges; bool m_continuousParameterRangesHasBeenSet; Aws::Vector m_categoricalParameterRanges; bool m_categoricalParameterRangesHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws