AWS SDK for C++  1.9.132
AWS SDK for C++
ClassifierEvaluationMetrics.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace Comprehend
20 {
21 namespace Model
22 {
23 
31  {
32  public:
37 
38 
44  inline double GetAccuracy() const{ return m_accuracy; }
45 
51  inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
52 
58  inline void SetAccuracy(double value) { m_accuracyHasBeenSet = true; m_accuracy = value; }
59 
65  inline ClassifierEvaluationMetrics& WithAccuracy(double value) { SetAccuracy(value); return *this;}
66 
67 
73  inline double GetPrecision() const{ return m_precision; }
74 
80  inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
81 
87  inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
88 
94  inline ClassifierEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
95 
96 
101  inline double GetRecall() const{ return m_recall; }
102 
107  inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
108 
113  inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
114 
119  inline ClassifierEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
120 
121 
128  inline double GetF1Score() const{ return m_f1Score; }
129 
136  inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
137 
144  inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
145 
152  inline ClassifierEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
153 
154 
162  inline double GetMicroPrecision() const{ return m_microPrecision; }
163 
171  inline bool MicroPrecisionHasBeenSet() const { return m_microPrecisionHasBeenSet; }
172 
180  inline void SetMicroPrecision(double value) { m_microPrecisionHasBeenSet = true; m_microPrecision = value; }
181 
189  inline ClassifierEvaluationMetrics& WithMicroPrecision(double value) { SetMicroPrecision(value); return *this;}
190 
191 
201  inline double GetMicroRecall() const{ return m_microRecall; }
202 
212  inline bool MicroRecallHasBeenSet() const { return m_microRecallHasBeenSet; }
213 
223  inline void SetMicroRecall(double value) { m_microRecallHasBeenSet = true; m_microRecall = value; }
224 
234  inline ClassifierEvaluationMetrics& WithMicroRecall(double value) { SetMicroRecall(value); return *this;}
235 
236 
243  inline double GetMicroF1Score() const{ return m_microF1Score; }
244 
251  inline bool MicroF1ScoreHasBeenSet() const { return m_microF1ScoreHasBeenSet; }
252 
259  inline void SetMicroF1Score(double value) { m_microF1ScoreHasBeenSet = true; m_microF1Score = value; }
260 
267  inline ClassifierEvaluationMetrics& WithMicroF1Score(double value) { SetMicroF1Score(value); return *this;}
268 
269 
275  inline double GetHammingLoss() const{ return m_hammingLoss; }
276 
282  inline bool HammingLossHasBeenSet() const { return m_hammingLossHasBeenSet; }
283 
289  inline void SetHammingLoss(double value) { m_hammingLossHasBeenSet = true; m_hammingLoss = value; }
290 
296  inline ClassifierEvaluationMetrics& WithHammingLoss(double value) { SetHammingLoss(value); return *this;}
297 
298  private:
299 
300  double m_accuracy;
301  bool m_accuracyHasBeenSet;
302 
303  double m_precision;
304  bool m_precisionHasBeenSet;
305 
306  double m_recall;
307  bool m_recallHasBeenSet;
308 
309  double m_f1Score;
310  bool m_f1ScoreHasBeenSet;
311 
312  double m_microPrecision;
313  bool m_microPrecisionHasBeenSet;
314 
315  double m_microRecall;
316  bool m_microRecallHasBeenSet;
317 
318  double m_microF1Score;
319  bool m_microF1ScoreHasBeenSet;
320 
321  double m_hammingLoss;
322  bool m_hammingLossHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace Comprehend
327 } // namespace Aws
Aws::Comprehend::Model::ClassifierEvaluationMetrics::HammingLossHasBeenSet
bool HammingLossHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:282
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::ClassifierEvaluationMetrics::MicroRecallHasBeenSet
bool MicroRecallHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:212
Aws::Comprehend::Model::ClassifierEvaluationMetrics::MicroF1ScoreHasBeenSet
bool MicroF1ScoreHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:251
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithRecall
ClassifierEvaluationMetrics & WithRecall(double value)
Definition: ClassifierEvaluationMetrics.h:119
Aws::Comprehend::Model::ClassifierEvaluationMetrics::PrecisionHasBeenSet
bool PrecisionHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:80
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetHammingLoss
void SetHammingLoss(double value)
Definition: ClassifierEvaluationMetrics.h:289
Aws::Comprehend::Model::ClassifierEvaluationMetrics::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetMicroPrecision
double GetMicroPrecision() const
Definition: ClassifierEvaluationMetrics.h:162
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetMicroF1Score
double GetMicroF1Score() const
Definition: ClassifierEvaluationMetrics.h:243
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithMicroF1Score
ClassifierEvaluationMetrics & WithMicroF1Score(double value)
Definition: ClassifierEvaluationMetrics.h:267
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetF1Score
double GetF1Score() const
Definition: ClassifierEvaluationMetrics.h:128
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetMicroPrecision
void SetMicroPrecision(double value)
Definition: ClassifierEvaluationMetrics.h:180
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetF1Score
void SetF1Score(double value)
Definition: ClassifierEvaluationMetrics.h:144
Aws::Comprehend::Model::ClassifierEvaluationMetrics::ClassifierEvaluationMetrics
ClassifierEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::ClassifierEvaluationMetrics::AccuracyHasBeenSet
bool AccuracyHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:51
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetPrecision
double GetPrecision() const
Definition: ClassifierEvaluationMetrics.h:73
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithMicroRecall
ClassifierEvaluationMetrics & WithMicroRecall(double value)
Definition: ClassifierEvaluationMetrics.h:234
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithPrecision
ClassifierEvaluationMetrics & WithPrecision(double value)
Definition: ClassifierEvaluationMetrics.h:94
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetMicroF1Score
void SetMicroF1Score(double value)
Definition: ClassifierEvaluationMetrics.h:259
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetAccuracy
void SetAccuracy(double value)
Definition: ClassifierEvaluationMetrics.h:58
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetRecall
void SetRecall(double value)
Definition: ClassifierEvaluationMetrics.h:113
Aws::Comprehend::Model::ClassifierEvaluationMetrics::RecallHasBeenSet
bool RecallHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:107
Aws::Comprehend::Model::ClassifierEvaluationMetrics
Definition: ClassifierEvaluationMetrics.h:31
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetPrecision
void SetPrecision(double value)
Definition: ClassifierEvaluationMetrics.h:87
Comprehend_EXPORTS.h
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithF1Score
ClassifierEvaluationMetrics & WithF1Score(double value)
Definition: ClassifierEvaluationMetrics.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetRecall
double GetRecall() const
Definition: ClassifierEvaluationMetrics.h:101
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithHammingLoss
ClassifierEvaluationMetrics & WithHammingLoss(double value)
Definition: ClassifierEvaluationMetrics.h:296
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetMicroRecall
double GetMicroRecall() const
Definition: ClassifierEvaluationMetrics.h:201
Aws::Comprehend::Model::ClassifierEvaluationMetrics::F1ScoreHasBeenSet
bool F1ScoreHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:136
Aws::Comprehend::Model::ClassifierEvaluationMetrics::MicroPrecisionHasBeenSet
bool MicroPrecisionHasBeenSet() const
Definition: ClassifierEvaluationMetrics.h:171
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithAccuracy
ClassifierEvaluationMetrics & WithAccuracy(double value)
Definition: ClassifierEvaluationMetrics.h:65
Aws::Comprehend::Model::ClassifierEvaluationMetrics::operator=
ClassifierEvaluationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetAccuracy
double GetAccuracy() const
Definition: ClassifierEvaluationMetrics.h:44
Aws::Comprehend::Model::ClassifierEvaluationMetrics::ClassifierEvaluationMetrics
ClassifierEvaluationMetrics()
Aws::Comprehend::Model::ClassifierEvaluationMetrics::GetHammingLoss
double GetHammingLoss() const
Definition: ClassifierEvaluationMetrics.h:275
Aws::Comprehend::Model::ClassifierEvaluationMetrics::WithMicroPrecision
ClassifierEvaluationMetrics & WithMicroPrecision(double value)
Definition: ClassifierEvaluationMetrics.h:189
Aws::Comprehend::Model::ClassifierEvaluationMetrics::SetMicroRecall
void SetMicroRecall(double value)
Definition: ClassifierEvaluationMetrics.h:223