AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ClassifierMetadata.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/ClassifierEvaluationMetrics.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
29 public:
30 AWS_COMPREHEND_API ClassifierMetadata() = default;
31 AWS_COMPREHEND_API ClassifierMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPREHEND_API ClassifierMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline int64_t GetNumberOfLabels() const { return m_numberOfLabels; }
40 inline bool NumberOfLabelsHasBeenSet() const { return m_numberOfLabelsHasBeenSet; }
41 inline void SetNumberOfLabels(int64_t value) {
42 m_numberOfLabelsHasBeenSet = true;
43 m_numberOfLabels = value;
44 }
45 inline ClassifierMetadata& WithNumberOfLabels(int64_t value) {
46 SetNumberOfLabels(value);
47 return *this;
48 }
50
52
56 inline int64_t GetNumberOfTrainedDocuments() const { return m_numberOfTrainedDocuments; }
57 inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
58 inline void SetNumberOfTrainedDocuments(int64_t value) {
59 m_numberOfTrainedDocumentsHasBeenSet = true;
60 m_numberOfTrainedDocuments = value;
61 }
64 return *this;
65 }
67
69
74 inline int64_t GetNumberOfTestDocuments() const { return m_numberOfTestDocuments; }
75 inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
76 inline void SetNumberOfTestDocuments(int64_t value) {
77 m_numberOfTestDocumentsHasBeenSet = true;
78 m_numberOfTestDocuments = value;
79 }
82 return *this;
83 }
85
87
91 inline const ClassifierEvaluationMetrics& GetEvaluationMetrics() const { return m_evaluationMetrics; }
92 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
93 template <typename EvaluationMetricsT = ClassifierEvaluationMetrics>
94 void SetEvaluationMetrics(EvaluationMetricsT&& value) {
95 m_evaluationMetricsHasBeenSet = true;
96 m_evaluationMetrics = std::forward<EvaluationMetricsT>(value);
97 }
98 template <typename EvaluationMetricsT = ClassifierEvaluationMetrics>
99 ClassifierMetadata& WithEvaluationMetrics(EvaluationMetricsT&& value) {
100 SetEvaluationMetrics(std::forward<EvaluationMetricsT>(value));
101 return *this;
102 }
104 private:
105 int64_t m_numberOfLabels{0};
106
107 int64_t m_numberOfTrainedDocuments{0};
108
109 int64_t m_numberOfTestDocuments{0};
110
111 ClassifierEvaluationMetrics m_evaluationMetrics;
112 bool m_numberOfLabelsHasBeenSet = false;
113 bool m_numberOfTrainedDocumentsHasBeenSet = false;
114 bool m_numberOfTestDocumentsHasBeenSet = false;
115 bool m_evaluationMetricsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Comprehend
120} // namespace Aws
ClassifierMetadata & WithNumberOfTrainedDocuments(int64_t value)
AWS_COMPREHEND_API ClassifierMetadata()=default
ClassifierMetadata & WithNumberOfLabels(int64_t value)
AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ClassifierMetadata & WithNumberOfTestDocuments(int64_t value)
AWS_COMPREHEND_API ClassifierMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const ClassifierEvaluationMetrics & GetEvaluationMetrics() const
ClassifierMetadata & WithEvaluationMetrics(EvaluationMetricsT &&value)
AWS_COMPREHEND_API ClassifierMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEvaluationMetrics(EvaluationMetricsT &&value)