AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EvaluationMetric.h
1
6#pragma once
7#include <aws/textract/Textract_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 Textract
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_TEXTRACT_API EvaluationMetric();
34 AWS_TEXTRACT_API EvaluationMetric(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline double GetF1Score() const{ return m_f1Score; }
44 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
45 inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
46 inline EvaluationMetric& WithF1Score(double value) { SetF1Score(value); return *this;}
48
50
53 inline double GetPrecision() const{ return m_precision; }
54 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
55 inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
56 inline EvaluationMetric& WithPrecision(double value) { SetPrecision(value); return *this;}
58
60
63 inline double GetRecall() const{ return m_recall; }
64 inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
65 inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
66 inline EvaluationMetric& WithRecall(double value) { SetRecall(value); return *this;}
68 private:
69
70 double m_f1Score;
71 bool m_f1ScoreHasBeenSet = false;
72
73 double m_precision;
74 bool m_precisionHasBeenSet = false;
75
76 double m_recall;
77 bool m_recallHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Textract
82} // namespace Aws
EvaluationMetric & WithRecall(double value)
AWS_TEXTRACT_API EvaluationMetric(Aws::Utils::Json::JsonView jsonValue)
EvaluationMetric & WithPrecision(double value)
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