I have met the confusion matrix during my first year of Data Science master's degree. The first time the professor had explained it, I…