can you please suggest why the values in the graph of confusion matrix not appearing in the middle of the square
Confusion_matrix
Hey @rajukumarbhui, before plt.imshow( ) function you can write the following line :
plt.figure(figsize=[15,15])
Hope this resolves the problem.
it does not work only the figure size increases but the values in each square box still stick to the edges top or bottom
https://drive.google.com/file/d/1ylAuU_kfNbfdltZdELazMwgXw3eY8dZl/view?usp=sharing have a look here it will only increase the figure size
This is basically a limitation of matplotlib. You can give it a last try by refering to this link. This link would let you know how to use the plt.tight_layout( ) function.
If none of the above method works, then I would suggest you to use some other methods of plotting the confusion matrix except the sklearn’s plot_confusion_matrix( ) function.
All the best
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.