What is a confusion matrix?

A confusion matrix is a performance evaluation method used in classification models to compare actual values with predicted values and…