Machine Learning, Probability, Statistics, Data Science, Deep Learning.
containing the TP, FP,TN and FN values. confusion matrix from sklearn.metrics import confusion_matrix y_true = [2, 0, 2, 2, 0, 1] y_pred = [0, 0, 2, 2, 0, 2] confusion_matrix(y_true, y_pred) Now, Imagine a binary classifier, that outputs 1 or 0. If everything was proper and the model was not