AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EntityRecognizerEvaluationMetrics.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 EntityRecognizerEvaluationMetrics() = default;
30 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline double GetPrecision() const { return m_precision; }
39 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
40 inline void SetPrecision(double value) {
41 m_precisionHasBeenSet = true;
42 m_precision = value;
43 }
45 SetPrecision(value);
46 return *this;
47 }
49
51
55 inline double GetRecall() const { return m_recall; }
56 inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
57 inline void SetRecall(double value) {
58 m_recallHasBeenSet = true;
59 m_recall = value;
60 }
62 SetRecall(value);
63 return *this;
64 }
66
68
76 inline double GetF1Score() const { return m_f1Score; }
77 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
78 inline void SetF1Score(double value) {
79 m_f1ScoreHasBeenSet = true;
80 m_f1Score = value;
81 }
83 SetF1Score(value);
84 return *this;
85 }
87 private:
88 double m_precision{0.0};
89
90 double m_recall{0.0};
91
92 double m_f1Score{0.0};
93 bool m_precisionHasBeenSet = false;
94 bool m_recallHasBeenSet = false;
95 bool m_f1ScoreHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Comprehend
100} // namespace Aws
EntityRecognizerEvaluationMetrics & WithPrecision(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API EntityRecognizerEvaluationMetrics()=default
AWS_COMPREHEND_API EntityRecognizerEvaluationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API EntityRecognizerEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue)
EntityRecognizerEvaluationMetrics & WithF1Score(double value)
Aws::Utils::Json::JsonValue JsonValue