AWS SDK for C++  1.9.106
AWS SDK for C++
ModelPerformance.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 LookoutforVision
20 {
21 namespace Model
22 {
23 
31  {
32  public:
37 
38 
42  inline double GetF1Score() const{ return m_f1Score; }
43 
47  inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
48 
52  inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
53 
57  inline ModelPerformance& WithF1Score(double value) { SetF1Score(value); return *this;}
58 
59 
63  inline double GetRecall() const{ return m_recall; }
64 
68  inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
69 
73  inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
74 
78  inline ModelPerformance& WithRecall(double value) { SetRecall(value); return *this;}
79 
80 
84  inline double GetPrecision() const{ return m_precision; }
85 
89  inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
90 
94  inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
95 
99  inline ModelPerformance& WithPrecision(double value) { SetPrecision(value); return *this;}
100 
101  private:
102 
103  double m_f1Score;
104  bool m_f1ScoreHasBeenSet;
105 
106  double m_recall;
107  bool m_recallHasBeenSet;
108 
109  double m_precision;
110  bool m_precisionHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace LookoutforVision
115 } // namespace Aws
Aws::LookoutforVision::Model::ModelPerformance::operator=
ModelPerformance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::ModelPerformance::GetRecall
double GetRecall() const
Definition: ModelPerformance.h:63
Aws::LookoutforVision::Model::ModelPerformance::WithPrecision
ModelPerformance & WithPrecision(double value)
Definition: ModelPerformance.h:99
Aws::LookoutforVision::Model::ModelPerformance::WithF1Score
ModelPerformance & WithF1Score(double value)
Definition: ModelPerformance.h:57
Aws::LookoutforVision::Model::ModelPerformance::WithRecall
ModelPerformance & WithRecall(double value)
Definition: ModelPerformance.h:78
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::ModelPerformance::PrecisionHasBeenSet
bool PrecisionHasBeenSet() const
Definition: ModelPerformance.h:89
Aws::LookoutforVision::Model::ModelPerformance::GetPrecision
double GetPrecision() const
Definition: ModelPerformance.h:84
Aws::LookoutforVision::Model::ModelPerformance::ModelPerformance
ModelPerformance()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::LookoutforVision::Model::ModelPerformance::SetF1Score
void SetF1Score(double value)
Definition: ModelPerformance.h:52
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::LookoutforVision::Model::ModelPerformance::GetF1Score
double GetF1Score() const
Definition: ModelPerformance.h:42
Aws::LookoutforVision::Model::ModelPerformance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::LookoutforVision::Model::ModelPerformance::ModelPerformance
ModelPerformance(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::ModelPerformance::SetRecall
void SetRecall(double value)
Definition: ModelPerformance.h:73
Aws::LookoutforVision::Model::ModelPerformance::SetPrecision
void SetPrecision(double value)
Definition: ModelPerformance.h:94
Aws::LookoutforVision::Model::ModelPerformance
Definition: ModelPerformance.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::ModelPerformance::RecallHasBeenSet
bool RecallHasBeenSet() const
Definition: ModelPerformance.h:68
Aws::LookoutforVision::Model::ModelPerformance::F1ScoreHasBeenSet
bool F1ScoreHasBeenSet() const
Definition: ModelPerformance.h:47
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28