Plot Confusion Matrix with scikit-learn without a Classifier
问题 I have a confusion matrix created with sklearn.metrics.confusion_matrix . Now, I would like to plot it with sklearn.metrics.plot_confusion_matrix , but the first parameter is the trained classifier, as specified in the documentation. The problem is that I don't have a classifier; the results were obtained doing manual calculations. Is it still possible to plot the confusion matrix in one line via scikit-learn, or do I have to code it myself with matplotlib? Thanks in advance! 回答1: The fact