The confusion matrix is a very useful tool for assessing how good a classification model based on machine learning is. In particular, it serves to explicitly show when one class is confused with another, which allows us to work separately with different types of errors.