# Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.0 0.16.1 0.15.0 0.14.1 0.13.1 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.5 Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix.

Confusion matrix of the model running the classification.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotation_spec_id

    def annotation_spec_id() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

  \[prediction_type\]\[google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type\]
  only list of \[annotation_spec_display_name-s\]\[\] is populated.

### #annotation_spec_id=

    def annotation_spec_id=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION


  \[prediction_type\]\[google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type\]
  only list of \[annotation_spec_display_name-s\]\[\] is populated.
**Returns**

- (::Array\<::String\>) --- Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

  \[prediction_type\]\[google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type\]
  only list of \[annotation_spec_display_name-s\]\[\] is populated.

### #display_name

    def display_name() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION

  \[prediction_type-s\]\[google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type\],
  distinct values of the target column at the moment of the model
  evaluation are populated here.

### #display_name=

    def display_name=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION


  \[prediction_type-s\]\[google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type\],
  distinct values of the target column at the moment of the model
  evaluation are populated here.
**Returns**

- (::Array\<::String\>) --- Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION

  \[prediction_type-s\]\[google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type\],
  distinct values of the target column at the moment of the model
  evaluation are populated here.

### #row

    def row() -> ::Array<::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>

**Returns**

- (::Array\<[::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-ClassificationEvaluationMetrics-ConfusionMatrix-Row)\>) --- Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.

### #row=

    def row=(value) -> ::Array<::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>

**Parameter**

- **value** (::Array\<[::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-ClassificationEvaluationMetrics-ConfusionMatrix-Row)\>) --- Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
**Returns**

- (::Array\<[::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-ClassificationEvaluationMetrics-ConfusionMatrix-Row)\>) --- Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.