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

If hyperparameter optimization (HPO) was performed, contains the * hyperparameter values of the best performing model.

See Also:

* AWS * API Reference

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

A list of the hyperparameter values of the best performing model.

*/ inline const Aws::Map& GetAlgorithmHyperParameters() const{ return m_algorithmHyperParameters; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline bool AlgorithmHyperParametersHasBeenSet() const { return m_algorithmHyperParametersHasBeenSet; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline void SetAlgorithmHyperParameters(const Aws::Map& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters = value; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline void SetAlgorithmHyperParameters(Aws::Map&& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters = std::move(value); } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& WithAlgorithmHyperParameters(const Aws::Map& value) { SetAlgorithmHyperParameters(value); return *this;} /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& WithAlgorithmHyperParameters(Aws::Map&& value) { SetAlgorithmHyperParameters(std::move(value)); return *this;} /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(const Aws::String& key, const Aws::String& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(key, value); return *this; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(Aws::String&& key, const Aws::String& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(std::move(key), value); return *this; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(const Aws::String& key, Aws::String&& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(key, std::move(value)); return *this; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(Aws::String&& key, Aws::String&& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(const char* key, Aws::String&& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(key, std::move(value)); return *this; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(Aws::String&& key, const char* value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(std::move(key), value); return *this; } /** *

A list of the hyperparameter values of the best performing model.

*/ inline TunedHPOParams& AddAlgorithmHyperParameters(const char* key, const char* value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(key, value); return *this; } private: Aws::Map m_algorithmHyperParameters; bool m_algorithmHyperParametersHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws