How to add correct labels for Seaborn Confusion Matrix
问题 I have plotted my data into a confusion matrix using seaborn but I ran into a problem. The problem is that it is only showing numbers from 0 to 11, on both axes, because I have 12 different labels. My code looks as follows: cf_matrix = confusion_matrix(y_test, y_pred) fig, ax = plt.subplots(figsize=(15,10)) sns.heatmap(cf_matrix, linewidths=1, annot=True, ax=ax, fmt='g') Here you can see my confusion matrix: I am getting the confusion matrix as I should. The only problem is the names of the