Class ConfusionMatrix (1.20.0)

Confusion matrix for multi-class classification models.

.. attribute:: confidence_threshold

Confidence threshold used when computing the entries of the confusion matrix.

Inheritance

builtins.object > google.protobuf.pyext._message.CMessage > builtins.object > google.protobuf.message.Message > ConfusionMatrix

Classes

Entry

A single entry in the confusion matrix.

.. attribute:: predicted_label

The predicted label. For confidence_threshold > 0, we will also add an entry indicating the number of items under the confidence threshold.

Row

A single row in the confusion matrix.

.. attribute:: actual_label

The original label of this row.