AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClassifierEvaluationMetrics.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Comprehend
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_COMPREHEND_API ClassifierEvaluationMetrics();
36 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
45 inline double GetAccuracy() const{ return m_accuracy; }
46 inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
47 inline void SetAccuracy(double value) { m_accuracyHasBeenSet = true; m_accuracy = value; }
48 inline ClassifierEvaluationMetrics& WithAccuracy(double value) { SetAccuracy(value); return *this;}
50
52
57 inline double GetPrecision() const{ return m_precision; }
58 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
59 inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
60 inline ClassifierEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
62
64
68 inline double GetRecall() const{ return m_recall; }
69 inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
70 inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
71 inline ClassifierEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
73
75
81 inline double GetF1Score() const{ return m_f1Score; }
82 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
83 inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
84 inline ClassifierEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
86
88
95 inline double GetMicroPrecision() const{ return m_microPrecision; }
96 inline bool MicroPrecisionHasBeenSet() const { return m_microPrecisionHasBeenSet; }
97 inline void SetMicroPrecision(double value) { m_microPrecisionHasBeenSet = true; m_microPrecision = value; }
98 inline ClassifierEvaluationMetrics& WithMicroPrecision(double value) { SetMicroPrecision(value); return *this;}
100
102
111 inline double GetMicroRecall() const{ return m_microRecall; }
112 inline bool MicroRecallHasBeenSet() const { return m_microRecallHasBeenSet; }
113 inline void SetMicroRecall(double value) { m_microRecallHasBeenSet = true; m_microRecall = value; }
114 inline ClassifierEvaluationMetrics& WithMicroRecall(double value) { SetMicroRecall(value); return *this;}
116
118
124 inline double GetMicroF1Score() const{ return m_microF1Score; }
125 inline bool MicroF1ScoreHasBeenSet() const { return m_microF1ScoreHasBeenSet; }
126 inline void SetMicroF1Score(double value) { m_microF1ScoreHasBeenSet = true; m_microF1Score = value; }
127 inline ClassifierEvaluationMetrics& WithMicroF1Score(double value) { SetMicroF1Score(value); return *this;}
129
131
136 inline double GetHammingLoss() const{ return m_hammingLoss; }
137 inline bool HammingLossHasBeenSet() const { return m_hammingLossHasBeenSet; }
138 inline void SetHammingLoss(double value) { m_hammingLossHasBeenSet = true; m_hammingLoss = value; }
139 inline ClassifierEvaluationMetrics& WithHammingLoss(double value) { SetHammingLoss(value); return *this;}
141 private:
142
143 double m_accuracy;
144 bool m_accuracyHasBeenSet = false;
145
146 double m_precision;
147 bool m_precisionHasBeenSet = false;
148
149 double m_recall;
150 bool m_recallHasBeenSet = false;
151
152 double m_f1Score;
153 bool m_f1ScoreHasBeenSet = false;
154
155 double m_microPrecision;
156 bool m_microPrecisionHasBeenSet = false;
157
158 double m_microRecall;
159 bool m_microRecallHasBeenSet = false;
160
161 double m_microF1Score;
162 bool m_microF1ScoreHasBeenSet = false;
163
164 double m_hammingLoss;
165 bool m_hammingLossHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Comprehend
170} // 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)
ClassifierEvaluationMetrics & WithAccuracy(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue