A question about the layout of my confusion matrix. I would like to replace the numbers "0", "1" and "2" corresponding to the variable labels with the actual variable labels which are "Bare soil", "Corn" and "Other crop". Thank for your help.
CM = confusion_matrix(y_test, y_pred)
CM = sns.heatmap(CM, square = True, cmap = "coolwarm", linewidths = .5, annot = True)
plt.title('Model confusion matrix', fontsize = 20)
plt.xlabel('Predict', fontsize = 15)
plt.ylabel('Real', fontsize = 15)
plt.show()