Computes misclassification counts and related statistics by contrasting predicted with true class labels.