0

I am plotting a confusion matrix for a ML Random Forest Model using sns.heatmap. I am getting a weird annotation for the True Positives '4.9e+02' where it should be '493'. Code is below and so is the image :

print(conf_mat_Attr_RF)

plt.figure(figsize = (16,8))
colormap = sns.color_palette('Blues', 12)
sns.heatmap(conf_mat_Attr_RF, annot = True)

plt.show()

Heatmap Top Left corner Annotation error.

Why am I getting this error? And the solution?

Kit
  • 17,129
  • 4
  • 56
  • 95
RikkiS
  • 47
  • 1
  • 6

0 Answers0