AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ClassifierEvaluationMetrics.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 ClassifierEvaluationMetrics() = default;
30 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline double GetAccuracy() const { return m_accuracy; }
39 inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
40 inline void SetAccuracy(double value) {
41 m_accuracyHasBeenSet = true;
42 m_accuracy = value;
43 }
45 SetAccuracy(value);
46 return *this;
47 }
49
51
56 inline double GetPrecision() const { return m_precision; }
57 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
58 inline void SetPrecision(double value) {
59 m_precisionHasBeenSet = true;
60 m_precision = value;
61 }
63 SetPrecision(value);
64 return *this;
65 }
67
69
73 inline double GetRecall() const { return m_recall; }
74 inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
75 inline void SetRecall(double value) {
76 m_recallHasBeenSet = true;
77 m_recall = value;
78 }
80 SetRecall(value);
81 return *this;
82 }
84
86
92 inline double GetF1Score() const { return m_f1Score; }
93 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
94 inline void SetF1Score(double value) {
95 m_f1ScoreHasBeenSet = true;
96 m_f1Score = value;
97 }
99 SetF1Score(value);
100 return *this;
101 }
103
105
112 inline double GetMicroPrecision() const { return m_microPrecision; }
113 inline bool MicroPrecisionHasBeenSet() const { return m_microPrecisionHasBeenSet; }
114 inline void SetMicroPrecision(double value) {
115 m_microPrecisionHasBeenSet = true;
116 m_microPrecision = value;
117 }
119 SetMicroPrecision(value);
120 return *this;
121 }
123
125
134 inline double GetMicroRecall() const { return m_microRecall; }
135 inline bool MicroRecallHasBeenSet() const { return m_microRecallHasBeenSet; }
136 inline void SetMicroRecall(double value) {
137 m_microRecallHasBeenSet = true;
138 m_microRecall = value;
139 }
141 SetMicroRecall(value);
142 return *this;
143 }
145
147
153 inline double GetMicroF1Score() const { return m_microF1Score; }
154 inline bool MicroF1ScoreHasBeenSet() const { return m_microF1ScoreHasBeenSet; }
155 inline void SetMicroF1Score(double value) {
156 m_microF1ScoreHasBeenSet = true;
157 m_microF1Score = value;
158 }
160 SetMicroF1Score(value);
161 return *this;
162 }
164
166
171 inline double GetHammingLoss() const { return m_hammingLoss; }
172 inline bool HammingLossHasBeenSet() const { return m_hammingLossHasBeenSet; }
173 inline void SetHammingLoss(double value) {
174 m_hammingLossHasBeenSet = true;
175 m_hammingLoss = value;
176 }
178 SetHammingLoss(value);
179 return *this;
180 }
182 private:
183 double m_accuracy{0.0};
184
185 double m_precision{0.0};
186
187 double m_recall{0.0};
188
189 double m_f1Score{0.0};
190
191 double m_microPrecision{0.0};
192
193 double m_microRecall{0.0};
194
195 double m_microF1Score{0.0};
196
197 double m_hammingLoss{0.0};
198 bool m_accuracyHasBeenSet = false;
199 bool m_precisionHasBeenSet = false;
200 bool m_recallHasBeenSet = false;
201 bool m_f1ScoreHasBeenSet = false;
202 bool m_microPrecisionHasBeenSet = false;
203 bool m_microRecallHasBeenSet = false;
204 bool m_microF1ScoreHasBeenSet = false;
205 bool m_hammingLossHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Comprehend
210} // namespace Aws
ClassifierEvaluationMetrics & WithHammingLoss(double value)
ClassifierEvaluationMetrics & WithMicroPrecision(double value)
ClassifierEvaluationMetrics & WithMicroF1Score(double value)
AWS_COMPREHEND_API ClassifierEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue)
ClassifierEvaluationMetrics & WithF1Score(double value)
ClassifierEvaluationMetrics & WithRecall(double value)
ClassifierEvaluationMetrics & WithPrecision(double value)
ClassifierEvaluationMetrics & WithMicroRecall(double value)
AWS_COMPREHEND_API ClassifierEvaluationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API ClassifierEvaluationMetrics()=default
ClassifierEvaluationMetrics & WithAccuracy(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue