sklearn plot_confusion_matrix swap axis code example Example: import sklearn.metrics from plot_confusion_matrix from sklearn.metrics import plot_confusion_matrix