The target labels, assumed to be 0-based integers
for the classes. The shape is [numExamples], where
numExamples is the number of examples included.
The predicted classes, assumed to be
0-based integers for the classes. Must have the same shape as labels.
Number of all classes, as an integer.
Its value must be larger than the largest element in labels and
predictions.
The confusion matrix as a int32-type 2D tensor. The value at
row r and column c is the number of times examples of actual class
r were predicted as class c.
Generated using TypeDoc
Computes the confusion matrix from true labels and predicted labels.