ConfusionMatrix(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Confusion matrix of the model running the classification. .. attribute:: annotation_spec_id
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION
prediction_type only list of [annotation_spec_display_name-s][] is populated.
:type: Sequence[str]
Attributes
Name | Description |
display_name |
Sequence[str]
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, distinct values of the target column at the moment of the model evaluation are populated here. |
row |
Sequence[google.cloud.automl_v1beta1.types.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.
|
Classes
Row
Row(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Output only. A row in the confusion matrix. .. attribute:: example_count
Output only. Value of the specific cell in the confusion
matrix. The number of values each row has (i.e. the length
of the row) is equal to the length of the
annotation_spec_id
field or, if that one is not
populated, length of the
display_name
field.
:type: Sequence[int]