Adding a probabilistic model for the confusion matrix.