plot_confusion_matrix without estimator
plot_confusion_matrix without estimator Question: I’m trying to use plot_confusion_matrix, from sklearn.metrics import confusion_matrix y_true = [1, 1, 0, 1] y_pred = [1, 1, 0, 0] confusion_matrix(y_true, y_pred) Output: array([[1, 0], [1, 2]]) Now, while using the followings; using ‘classes’ or without ‘classes’ from sklearn.metrics import plot_confusion_matrix plot_confusion_matrix(y_true, y_pred, classes=[0,1], title=’Confusion matrix, without normalization’) or plot_confusion_matrix(y_true, …