Display Columns and Labels for Confusion Matrix-

2019-03-07 01:30发布

问题:

While printing the confusion matrix, I get the columns and labels in number format- But, when i try to make it a DataFrame and get the column names by this suggestion, I get this below error -

ValueError: Shape of passed values is (32, 32), indices imply (35, 35)

Just for your information, I would like to inform that my actual dataset has 35 unique target categories but not all are being seen in the below. Why?