wi-lab commited on
Commit
bf499d1
·
verified ·
1 Parent(s): 34001b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -87,8 +87,7 @@ def plot_confusion_matrix_beamPred(cm, classes, title, save_path, theme='Dark'):
87
  plt.figure(figsize=(10, 10))
88
 
89
  # Plot the confusion matrix with a colormap compatible for the mode
90
- sns.heatmap(cm, cmap=cmap, cbar=True, ax=ax, linecolor=text_color)
91
- plt.setp(cbar.ax.yaxis.get_ticklabels(), color=text_color)
92
 
93
  # Add F1-score to the title
94
  plt.title(f"{title}\nF1 Score: {avg_f1:.3f}", color=text_color, fontsize=23)
 
87
  plt.figure(figsize=(10, 10))
88
 
89
  # Plot the confusion matrix with a colormap compatible for the mode
90
+ sns.heatmap(cm, cmap=cmap, cbar=True)
 
91
 
92
  # Add F1-score to the title
93
  plt.title(f"{title}\nF1 Score: {avg_f1:.3f}", color=text_color, fontsize=23)