Confusion matrix (source code)

= Confusion matrix
{wiki}

A confusion matrix cross-tabulates true classes against predicted classes. Its diagonal entries count correct predictions and its off-diagonal entries describe the kinds of classification errors.