Compute confusion matrix

compute_confusion_matrix(z, y, K = NULL)

Arguments

z

a label vector

y

a label vector

K

number of labels in both z and y