AWS SDK for C++  1.8.126
AWS SDK for C++
EntityTypesEvaluationMetrics.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 EntityTypesEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
66 
67 
73  inline double GetRecall() const{ return m_recall; }
74 
80  inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
81 
87  inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
88 
94  inline EntityTypesEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
95 
96 
103  inline double GetF1Score() const{ return m_f1Score; }
104 
111  inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
112 
119  inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
120 
127  inline EntityTypesEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
128 
129  private:
130 
131  double m_precision;
132  bool m_precisionHasBeenSet;
133 
134  double m_recall;
135  bool m_recallHasBeenSet;
136 
137  double m_f1Score;
138  bool m_f1ScoreHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace Comprehend
143 } // namespace Aws
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::EntityTypesEvaluationMetrics
EntityTypesEvaluationMetrics()
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::SetF1Score
void SetF1Score(double value)
Definition: EntityTypesEvaluationMetrics.h:119
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::GetRecall
double GetRecall() const
Definition: EntityTypesEvaluationMetrics.h:73
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::SetPrecision
void SetPrecision(double value)
Definition: EntityTypesEvaluationMetrics.h:58
Aws::Comprehend::Model::EntityTypesEvaluationMetrics
Definition: EntityTypesEvaluationMetrics.h:31
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::GetF1Score
double GetF1Score() const
Definition: EntityTypesEvaluationMetrics.h:103
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::F1ScoreHasBeenSet
bool F1ScoreHasBeenSet() const
Definition: EntityTypesEvaluationMetrics.h:111
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::WithPrecision
EntityTypesEvaluationMetrics & WithPrecision(double value)
Definition: EntityTypesEvaluationMetrics.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::GetPrecision
double GetPrecision() const
Definition: EntityTypesEvaluationMetrics.h:44
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::SetRecall
void SetRecall(double value)
Definition: EntityTypesEvaluationMetrics.h:87
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::PrecisionHasBeenSet
bool PrecisionHasBeenSet() const
Definition: EntityTypesEvaluationMetrics.h:51
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::operator=
EntityTypesEvaluationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::EntityTypesEvaluationMetrics
EntityTypesEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::WithF1Score
EntityTypesEvaluationMetrics & WithF1Score(double value)
Definition: EntityTypesEvaluationMetrics.h:127
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::WithRecall
EntityTypesEvaluationMetrics & WithRecall(double value)
Definition: EntityTypesEvaluationMetrics.h:94
Aws::Comprehend::Model::EntityTypesEvaluationMetrics::RecallHasBeenSet
bool RecallHasBeenSet() const
Definition: EntityTypesEvaluationMetrics.h:80