Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::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.v1p1beta.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.v1p1beta.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.v1p1beta.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.v1p1beta.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.v1p1beta.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.v1p1beta.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::V1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>
Returns
-
(::Array<::Google::Cloud::AutoML::V1::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 theannotation_spec_id[i]
and are predicted asannotation_spec_id[j]
by the model being evaluated.
#row=
def row=(value) -> ::Array<::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>
Parameter
-
value (::Array<::Google::Cloud::AutoML::V1::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 theannotation_spec_id[i]
and are predicted asannotation_spec_id[j]
by the model being evaluated.
Returns
-
(::Array<::Google::Cloud::AutoML::V1::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 theannotation_spec_id[i]
and are predicted asannotation_spec_id[j]
by the model being evaluated.