Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::ClassificationMetrics.
Metrics calculated for a classification model.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#confusion_matrix
def confusion_matrix() -> ::Google::Cloud::DataLabeling::V1beta1::ConfusionMatrix
Returns
- (::Google::Cloud::DataLabeling::V1beta1::ConfusionMatrix) — Confusion matrix of predicted labels vs. ground truth labels.
#confusion_matrix=
def confusion_matrix=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ConfusionMatrix
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::ConfusionMatrix) — Confusion matrix of predicted labels vs. ground truth labels.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::ConfusionMatrix) — Confusion matrix of predicted labels vs. ground truth labels.
#pr_curve
def pr_curve() -> ::Google::Cloud::DataLabeling::V1beta1::PrCurve
Returns
- (::Google::Cloud::DataLabeling::V1beta1::PrCurve) — Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.
#pr_curve=
def pr_curve=(value) -> ::Google::Cloud::DataLabeling::V1beta1::PrCurve
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::PrCurve) — Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::PrCurve) — Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.