# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::ClassificationMetrics (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.5 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ConfusionMatrix)) --- Confusion matrix of predicted labels vs. ground truth labels.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ConfusionMatrix](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve)) --- Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.