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

The confusion matrix shows you what your transform is predicting accurately * and what types of errors it is making.

For more information, see Confusion matrix in * Wikipedia.

See Also:

AWS * API Reference

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

The number of matches in the data that the transform correctly found, in the * confusion matrix for your transform.

*/ inline long long GetNumTruePositives() const{ return m_numTruePositives; } /** *

The number of matches in the data that the transform correctly found, in the * confusion matrix for your transform.

*/ inline bool NumTruePositivesHasBeenSet() const { return m_numTruePositivesHasBeenSet; } /** *

The number of matches in the data that the transform correctly found, in the * confusion matrix for your transform.

*/ inline void SetNumTruePositives(long long value) { m_numTruePositivesHasBeenSet = true; m_numTruePositives = value; } /** *

The number of matches in the data that the transform correctly found, in the * confusion matrix for your transform.

*/ inline ConfusionMatrix& WithNumTruePositives(long long value) { SetNumTruePositives(value); return *this;} /** *

The number of nonmatches in the data that the transform incorrectly * classified as a match, in the confusion matrix for your transform.

*/ inline long long GetNumFalsePositives() const{ return m_numFalsePositives; } /** *

The number of nonmatches in the data that the transform incorrectly * classified as a match, in the confusion matrix for your transform.

*/ inline bool NumFalsePositivesHasBeenSet() const { return m_numFalsePositivesHasBeenSet; } /** *

The number of nonmatches in the data that the transform incorrectly * classified as a match, in the confusion matrix for your transform.

*/ inline void SetNumFalsePositives(long long value) { m_numFalsePositivesHasBeenSet = true; m_numFalsePositives = value; } /** *

The number of nonmatches in the data that the transform incorrectly * classified as a match, in the confusion matrix for your transform.

*/ inline ConfusionMatrix& WithNumFalsePositives(long long value) { SetNumFalsePositives(value); return *this;} /** *

The number of nonmatches in the data that the transform correctly rejected, * in the confusion matrix for your transform.

*/ inline long long GetNumTrueNegatives() const{ return m_numTrueNegatives; } /** *

The number of nonmatches in the data that the transform correctly rejected, * in the confusion matrix for your transform.

*/ inline bool NumTrueNegativesHasBeenSet() const { return m_numTrueNegativesHasBeenSet; } /** *

The number of nonmatches in the data that the transform correctly rejected, * in the confusion matrix for your transform.

*/ inline void SetNumTrueNegatives(long long value) { m_numTrueNegativesHasBeenSet = true; m_numTrueNegatives = value; } /** *

The number of nonmatches in the data that the transform correctly rejected, * in the confusion matrix for your transform.

*/ inline ConfusionMatrix& WithNumTrueNegatives(long long value) { SetNumTrueNegatives(value); return *this;} /** *

The number of matches in the data that the transform didn't find, in the * confusion matrix for your transform.

*/ inline long long GetNumFalseNegatives() const{ return m_numFalseNegatives; } /** *

The number of matches in the data that the transform didn't find, in the * confusion matrix for your transform.

*/ inline bool NumFalseNegativesHasBeenSet() const { return m_numFalseNegativesHasBeenSet; } /** *

The number of matches in the data that the transform didn't find, in the * confusion matrix for your transform.

*/ inline void SetNumFalseNegatives(long long value) { m_numFalseNegativesHasBeenSet = true; m_numFalseNegatives = value; } /** *

The number of matches in the data that the transform didn't find, in the * confusion matrix for your transform.

*/ inline ConfusionMatrix& WithNumFalseNegatives(long long value) { SetNumFalseNegatives(value); return *this;} private: long long m_numTruePositives; bool m_numTruePositivesHasBeenSet = false; long long m_numFalsePositives; bool m_numFalsePositivesHasBeenSet = false; long long m_numTrueNegatives; bool m_numTrueNegativesHasBeenSet = false; long long m_numFalseNegatives; bool m_numFalseNegativesHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws