AWS SDK for C++  1.9.125
AWS SDK for C++
EntityRecognizerEvaluationMetrics.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 GetPrecision() const{ return m_precision; }
45 
51  inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
52 
58  inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
59 
65  inline EntityRecognizerEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
66 
67 
72  inline double GetRecall() const{ return m_recall; }
73 
78  inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
79 
84  inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
85 
90  inline EntityRecognizerEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
91 
92 
99  inline double GetF1Score() const{ return m_f1Score; }
100 
107  inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
108 
115  inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
116 
123  inline EntityRecognizerEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
124 
125  private:
126 
127  double m_precision;
128  bool m_precisionHasBeenSet;
129 
130  double m_recall;
131  bool m_recallHasBeenSet;
132 
133  double m_f1Score;
134  bool m_f1ScoreHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace Comprehend
139 } // namespace Aws
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::GetPrecision
double GetPrecision() const
Definition: EntityRecognizerEvaluationMetrics.h:44
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::SetPrecision
void SetPrecision(double value)
Definition: EntityRecognizerEvaluationMetrics.h:58
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::SetF1Score
void SetF1Score(double value)
Definition: EntityRecognizerEvaluationMetrics.h:115
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::GetRecall
double GetRecall() const
Definition: EntityRecognizerEvaluationMetrics.h:72
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::WithF1Score
EntityRecognizerEvaluationMetrics & WithF1Score(double value)
Definition: EntityRecognizerEvaluationMetrics.h:123
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::F1ScoreHasBeenSet
bool F1ScoreHasBeenSet() const
Definition: EntityRecognizerEvaluationMetrics.h:107
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::RecallHasBeenSet
bool RecallHasBeenSet() const
Definition: EntityRecognizerEvaluationMetrics.h:78
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::EntityRecognizerEvaluationMetrics
EntityRecognizerEvaluationMetrics()
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::WithPrecision
EntityRecognizerEvaluationMetrics & WithPrecision(double value)
Definition: EntityRecognizerEvaluationMetrics.h:65
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::WithRecall
EntityRecognizerEvaluationMetrics & WithRecall(double value)
Definition: EntityRecognizerEvaluationMetrics.h:90
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics
Definition: EntityRecognizerEvaluationMetrics.h:31
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::GetF1Score
double GetF1Score() const
Definition: EntityRecognizerEvaluationMetrics.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::EntityRecognizerEvaluationMetrics
EntityRecognizerEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::SetRecall
void SetRecall(double value)
Definition: EntityRecognizerEvaluationMetrics.h:84
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::operator=
EntityRecognizerEvaluationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics::PrecisionHasBeenSet
bool PrecisionHasBeenSet() const
Definition: EntityRecognizerEvaluationMetrics.h:51