AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntityRecognizerEvaluationMetrics.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_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 Comprehend
20{
21namespace Model
22{
23
31 {
32 public:
36 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
45 inline double GetPrecision() const{ return m_precision; }
46 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
47 inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
48 inline EntityRecognizerEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
50
52
56 inline double GetRecall() const{ return m_recall; }
57 inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
58 inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
59 inline EntityRecognizerEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
61
63
71 inline double GetF1Score() const{ return m_f1Score; }
72 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
73 inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
74 inline EntityRecognizerEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
76 private:
77
78 double m_precision;
79 bool m_precisionHasBeenSet = false;
80
81 double m_recall;
82 bool m_recallHasBeenSet = false;
83
84 double m_f1Score;
85 bool m_f1ScoreHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Comprehend
90} // namespace Aws
EntityRecognizerEvaluationMetrics & WithPrecision(double value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
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