/** * 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 ForecastService { namespace Model { /** *

Provides detailed error metrics to evaluate the performance of a predictor. * This object is part of the Metrics object.

See Also:

AWS * API Reference

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

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline const Aws::String& GetForecastType() const{ return m_forecastType; } /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline bool ForecastTypeHasBeenSet() const { return m_forecastTypeHasBeenSet; } /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline void SetForecastType(const Aws::String& value) { m_forecastTypeHasBeenSet = true; m_forecastType = value; } /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline void SetForecastType(Aws::String&& value) { m_forecastTypeHasBeenSet = true; m_forecastType = std::move(value); } /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline void SetForecastType(const char* value) { m_forecastTypeHasBeenSet = true; m_forecastType.assign(value); } /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline ErrorMetric& WithForecastType(const Aws::String& value) { SetForecastType(value); return *this;} /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline ErrorMetric& WithForecastType(Aws::String&& value) { SetForecastType(std::move(value)); return *this;} /** *

The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.

*/ inline ErrorMetric& WithForecastType(const char* value) { SetForecastType(value); return *this;} /** *

The weighted absolute percentage error (WAPE).

*/ inline double GetWAPE() const{ return m_wAPE; } /** *

The weighted absolute percentage error (WAPE).

*/ inline bool WAPEHasBeenSet() const { return m_wAPEHasBeenSet; } /** *

The weighted absolute percentage error (WAPE).

*/ inline void SetWAPE(double value) { m_wAPEHasBeenSet = true; m_wAPE = value; } /** *

The weighted absolute percentage error (WAPE).

*/ inline ErrorMetric& WithWAPE(double value) { SetWAPE(value); return *this;} /** *

The root-mean-square error (RMSE).

*/ inline double GetRMSE() const{ return m_rMSE; } /** *

The root-mean-square error (RMSE).

*/ inline bool RMSEHasBeenSet() const { return m_rMSEHasBeenSet; } /** *

The root-mean-square error (RMSE).

*/ inline void SetRMSE(double value) { m_rMSEHasBeenSet = true; m_rMSE = value; } /** *

The root-mean-square error (RMSE).

*/ inline ErrorMetric& WithRMSE(double value) { SetRMSE(value); return *this;} /** *

The Mean Absolute Scaled Error (MASE)

*/ inline double GetMASE() const{ return m_mASE; } /** *

The Mean Absolute Scaled Error (MASE)

*/ inline bool MASEHasBeenSet() const { return m_mASEHasBeenSet; } /** *

The Mean Absolute Scaled Error (MASE)

*/ inline void SetMASE(double value) { m_mASEHasBeenSet = true; m_mASE = value; } /** *

The Mean Absolute Scaled Error (MASE)

*/ inline ErrorMetric& WithMASE(double value) { SetMASE(value); return *this;} /** *

The Mean Absolute Percentage Error (MAPE)

*/ inline double GetMAPE() const{ return m_mAPE; } /** *

The Mean Absolute Percentage Error (MAPE)

*/ inline bool MAPEHasBeenSet() const { return m_mAPEHasBeenSet; } /** *

The Mean Absolute Percentage Error (MAPE)

*/ inline void SetMAPE(double value) { m_mAPEHasBeenSet = true; m_mAPE = value; } /** *

The Mean Absolute Percentage Error (MAPE)

*/ inline ErrorMetric& WithMAPE(double value) { SetMAPE(value); return *this;} private: Aws::String m_forecastType; bool m_forecastTypeHasBeenSet = false; double m_wAPE; bool m_wAPEHasBeenSet = false; double m_rMSE; bool m_rMSEHasBeenSet = false; double m_mASE; bool m_mASEHasBeenSet = false; double m_mAPE; bool m_mAPEHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws