A confusion matrix summarizes the accuracy of prediction results in a classification model. The number of correct and incorrect predictions are summarized for each class. This gives you insight not only into the errors being made by your classifier but also the types of errors that are being made.