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

The evaluation metrics associated with the evaluated model.

See * Also:

AWS * API Reference

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

The average F1 score from the evaluation metrics.

*/ inline double GetAverageF1Score() const{ return m_averageF1Score; } /** *

The average F1 score from the evaluation metrics.

*/ inline bool AverageF1ScoreHasBeenSet() const { return m_averageF1ScoreHasBeenSet; } /** *

The average F1 score from the evaluation metrics.

*/ inline void SetAverageF1Score(double value) { m_averageF1ScoreHasBeenSet = true; m_averageF1Score = value; } /** *

The average F1 score from the evaluation metrics.

*/ inline FlywheelModelEvaluationMetrics& WithAverageF1Score(double value) { SetAverageF1Score(value); return *this;} /** *

Average precision metric for the model.

*/ inline double GetAveragePrecision() const{ return m_averagePrecision; } /** *

Average precision metric for the model.

*/ inline bool AveragePrecisionHasBeenSet() const { return m_averagePrecisionHasBeenSet; } /** *

Average precision metric for the model.

*/ inline void SetAveragePrecision(double value) { m_averagePrecisionHasBeenSet = true; m_averagePrecision = value; } /** *

Average precision metric for the model.

*/ inline FlywheelModelEvaluationMetrics& WithAveragePrecision(double value) { SetAveragePrecision(value); return *this;} /** *

Average recall metric for the model.

*/ inline double GetAverageRecall() const{ return m_averageRecall; } /** *

Average recall metric for the model.

*/ inline bool AverageRecallHasBeenSet() const { return m_averageRecallHasBeenSet; } /** *

Average recall metric for the model.

*/ inline void SetAverageRecall(double value) { m_averageRecallHasBeenSet = true; m_averageRecall = value; } /** *

Average recall metric for the model.

*/ inline FlywheelModelEvaluationMetrics& WithAverageRecall(double value) { SetAverageRecall(value); return *this;} /** *

Average accuracy metric for the model.

*/ inline double GetAverageAccuracy() const{ return m_averageAccuracy; } /** *

Average accuracy metric for the model.

*/ inline bool AverageAccuracyHasBeenSet() const { return m_averageAccuracyHasBeenSet; } /** *

Average accuracy metric for the model.

*/ inline void SetAverageAccuracy(double value) { m_averageAccuracyHasBeenSet = true; m_averageAccuracy = value; } /** *

Average accuracy metric for the model.

*/ inline FlywheelModelEvaluationMetrics& WithAverageAccuracy(double value) { SetAverageAccuracy(value); return *this;} private: double m_averageF1Score; bool m_averageF1ScoreHasBeenSet = false; double m_averagePrecision; bool m_averagePrecisionHasBeenSet = false; double m_averageRecall; bool m_averageRecallHasBeenSet = false; double m_averageAccuracy; bool m_averageAccuracyHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws