AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FlywheelModelEvaluationMetrics.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Comprehend {
17namespace Model {
18
26 public:
27 AWS_COMPREHEND_API FlywheelModelEvaluationMetrics() = default;
30 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetAverageF1Score() const { return m_averageF1Score; }
37 inline bool AverageF1ScoreHasBeenSet() const { return m_averageF1ScoreHasBeenSet; }
38 inline void SetAverageF1Score(double value) {
39 m_averageF1ScoreHasBeenSet = true;
40 m_averageF1Score = value;
41 }
43 SetAverageF1Score(value);
44 return *this;
45 }
47
49
52 inline double GetAveragePrecision() const { return m_averagePrecision; }
53 inline bool AveragePrecisionHasBeenSet() const { return m_averagePrecisionHasBeenSet; }
54 inline void SetAveragePrecision(double value) {
55 m_averagePrecisionHasBeenSet = true;
56 m_averagePrecision = value;
57 }
60 return *this;
61 }
63
65
68 inline double GetAverageRecall() const { return m_averageRecall; }
69 inline bool AverageRecallHasBeenSet() const { return m_averageRecallHasBeenSet; }
70 inline void SetAverageRecall(double value) {
71 m_averageRecallHasBeenSet = true;
72 m_averageRecall = value;
73 }
75 SetAverageRecall(value);
76 return *this;
77 }
79
81
84 inline double GetAverageAccuracy() const { return m_averageAccuracy; }
85 inline bool AverageAccuracyHasBeenSet() const { return m_averageAccuracyHasBeenSet; }
86 inline void SetAverageAccuracy(double value) {
87 m_averageAccuracyHasBeenSet = true;
88 m_averageAccuracy = value;
89 }
91 SetAverageAccuracy(value);
92 return *this;
93 }
95 private:
96 double m_averageF1Score{0.0};
97
98 double m_averagePrecision{0.0};
99
100 double m_averageRecall{0.0};
101
102 double m_averageAccuracy{0.0};
103 bool m_averageF1ScoreHasBeenSet = false;
104 bool m_averagePrecisionHasBeenSet = false;
105 bool m_averageRecallHasBeenSet = false;
106 bool m_averageAccuracyHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Comprehend
111} // namespace Aws
FlywheelModelEvaluationMetrics & WithAverageAccuracy(double value)
AWS_COMPREHEND_API FlywheelModelEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue)
FlywheelModelEvaluationMetrics & WithAverageRecall(double value)
FlywheelModelEvaluationMetrics & WithAverageF1Score(double value)
AWS_COMPREHEND_API FlywheelModelEvaluationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API FlywheelModelEvaluationMetrics()=default
FlywheelModelEvaluationMetrics & WithAveragePrecision(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue