AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EvaluationMetric.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Textract {
17namespace Model {
18
26 public:
27 AWS_TEXTRACT_API EvaluationMetric() = default;
28 AWS_TEXTRACT_API EvaluationMetric(Aws::Utils::Json::JsonView jsonValue);
30 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetF1Score() const { return m_f1Score; }
37 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
38 inline void SetF1Score(double value) {
39 m_f1ScoreHasBeenSet = true;
40 m_f1Score = value;
41 }
42 inline EvaluationMetric& WithF1Score(double value) {
43 SetF1Score(value);
44 return *this;
45 }
47
49
52 inline double GetPrecision() const { return m_precision; }
53 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
54 inline void SetPrecision(double value) {
55 m_precisionHasBeenSet = true;
56 m_precision = value;
57 }
58 inline EvaluationMetric& WithPrecision(double value) {
59 SetPrecision(value);
60 return *this;
61 }
63
65
68 inline double GetRecall() const { return m_recall; }
69 inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
70 inline void SetRecall(double value) {
71 m_recallHasBeenSet = true;
72 m_recall = value;
73 }
74 inline EvaluationMetric& WithRecall(double value) {
75 SetRecall(value);
76 return *this;
77 }
79 private:
80 double m_f1Score{0.0};
81
82 double m_precision{0.0};
83
84 double m_recall{0.0};
85 bool m_f1ScoreHasBeenSet = false;
86 bool m_precisionHasBeenSet = false;
87 bool m_recallHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Textract
92} // namespace Aws
EvaluationMetric & WithRecall(double value)
AWS_TEXTRACT_API EvaluationMetric(Aws::Utils::Json::JsonView jsonValue)
EvaluationMetric & WithPrecision(double value)
AWS_TEXTRACT_API EvaluationMetric()=default
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API EvaluationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationMetric & WithF1Score(double value)
Aws::Utils::Json::JsonValue JsonValue