/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Provides information about a document classifier.

See Also:

* AWS * API Reference

*/ class ClassifierMetadata { public: AWS_COMPREHEND_API ClassifierMetadata(); AWS_COMPREHEND_API ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API ClassifierMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of labels in the input data.

*/ inline int GetNumberOfLabels() const{ return m_numberOfLabels; } /** *

The number of labels in the input data.

*/ inline bool NumberOfLabelsHasBeenSet() const { return m_numberOfLabelsHasBeenSet; } /** *

The number of labels in the input data.

*/ inline void SetNumberOfLabels(int value) { m_numberOfLabelsHasBeenSet = true; m_numberOfLabels = value; } /** *

The number of labels in the input data.

*/ inline ClassifierMetadata& WithNumberOfLabels(int value) { SetNumberOfLabels(value); return *this;} /** *

The number of documents in the input data that were used to train the * classifier. Typically this is 80 to 90 percent of the input documents.

*/ inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; } /** *

The number of documents in the input data that were used to train the * classifier. Typically this is 80 to 90 percent of the input documents.

*/ inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; } /** *

The number of documents in the input data that were used to train the * classifier. Typically this is 80 to 90 percent of the input documents.

*/ inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; } /** *

The number of documents in the input data that were used to train the * classifier. Typically this is 80 to 90 percent of the input documents.

*/ inline ClassifierMetadata& WithNumberOfTrainedDocuments(int value) { SetNumberOfTrainedDocuments(value); return *this;} /** *

The number of documents in the input data that were used to test the * classifier. Typically this is 10 to 20 percent of the input documents, up to * 10,000 documents.

*/ inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; } /** *

The number of documents in the input data that were used to test the * classifier. Typically this is 10 to 20 percent of the input documents, up to * 10,000 documents.

*/ inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; } /** *

The number of documents in the input data that were used to test the * classifier. Typically this is 10 to 20 percent of the input documents, up to * 10,000 documents.

*/ inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; } /** *

The number of documents in the input data that were used to test the * classifier. Typically this is 10 to 20 percent of the input documents, up to * 10,000 documents.

*/ inline ClassifierMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;} /** *

Describes the result metrics for the test data associated with an * documentation classifier.

*/ inline const ClassifierEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; } /** *

Describes the result metrics for the test data associated with an * documentation classifier.

*/ inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; } /** *

Describes the result metrics for the test data associated with an * documentation classifier.

*/ inline void SetEvaluationMetrics(const ClassifierEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; } /** *

Describes the result metrics for the test data associated with an * documentation classifier.

*/ inline void SetEvaluationMetrics(ClassifierEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); } /** *

Describes the result metrics for the test data associated with an * documentation classifier.

*/ inline ClassifierMetadata& WithEvaluationMetrics(const ClassifierEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;} /** *

Describes the result metrics for the test data associated with an * documentation classifier.

*/ inline ClassifierMetadata& WithEvaluationMetrics(ClassifierEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;} private: int m_numberOfLabels; bool m_numberOfLabelsHasBeenSet = false; int m_numberOfTrainedDocuments; bool m_numberOfTrainedDocumentsHasBeenSet = false; int m_numberOfTestDocuments; bool m_numberOfTestDocumentsHasBeenSet = false; ClassifierEvaluationMetrics m_evaluationMetrics; bool m_evaluationMetricsHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws