/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Shows the latest objective metric emitted by a training job that was launched
* by a hyperparameter tuning job. You define the objective metric in the
* HyperParameterTuningJobObjective
parameter of HyperParameterTuningJobConfig.See
* Also:
AWS
* API Reference
Select if you want to minimize or maximize the objective metric during * hyperparameter tuning.
*/ inline const HyperParameterTuningJobObjectiveType& GetType() const{ return m_type; } /** *Select if you want to minimize or maximize the objective metric during * hyperparameter tuning.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *Select if you want to minimize or maximize the objective metric during * hyperparameter tuning.
*/ inline void SetType(const HyperParameterTuningJobObjectiveType& value) { m_typeHasBeenSet = true; m_type = value; } /** *Select if you want to minimize or maximize the objective metric during * hyperparameter tuning.
*/ inline void SetType(HyperParameterTuningJobObjectiveType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *Select if you want to minimize or maximize the objective metric during * hyperparameter tuning.
*/ inline FinalHyperParameterTuningJobObjectiveMetric& WithType(const HyperParameterTuningJobObjectiveType& value) { SetType(value); return *this;} /** *Select if you want to minimize or maximize the objective metric during * hyperparameter tuning.
*/ inline FinalHyperParameterTuningJobObjectiveMetric& WithType(HyperParameterTuningJobObjectiveType&& value) { SetType(std::move(value)); return *this;} /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the objective metric. For SageMaker built-in algorithms, metrics * are defined per algorithm. See the metrics * for XGBoost as an example. You can also use a custom algorithm for training * and define your own metrics. For more information, see Define * metrics and environment variables.
*/ inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *The value of the objective metric.
*/ inline double GetValue() const{ return m_value; } /** *The value of the objective metric.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value of the objective metric.
*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *The value of the objective metric.
*/ inline FinalHyperParameterTuningJobObjectiveMetric& WithValue(double value) { SetValue(value); return *this;} private: HyperParameterTuningJobObjectiveType m_type; bool m_typeHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws