Confusion matrix is a table which contains information about predicted values and actual values in a classification model

It has four parts namely true positive ,true negative, false positive and false negative

It can be used to calculate accuracy, precision and recall