1
sns.heatmap(metric, annot=True ,fmt='g', cmap ="Blues")
plt.title('Confusion matrix')
plt.ylabel('Actual label')
plt.xlabel('Predicted label')

I'm trying to plot my heatmap, but my numbers look very ugly! enter image description here

Rarity7-
  • 187
  • 1
  • 11

1 Answers1

0

Have you tried corr on dataset? something as follows

sns.heatmap(df.corr(),cmap='coolwarm',annot=True)
Swarit Agarwal
  • 2,520
  • 1
  • 26
  • 33