Sadjad Alikhani commited on
Commit
da6267a
·
verified ·
1 Parent(s): 940059a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -71,7 +71,8 @@ def plot_confusion_matrix_beamPred(cm, classes, title, save_path):
71
  plt.figure(figsize=(10, 10))
72
 
73
  # Plot the confusion matrix with a dark-mode compatible colormap
74
- sns.heatmap(cm, cmap="magma", cbar=True, linecolor='white', vmin=0, vmax=cm.max(), alpha=0.85)
 
75
 
76
  # Add F1-score to the title
77
  plt.title(f"{title}\n(F1 Score: {avg_f1:.3f})", color="white", fontsize=14)
 
71
  plt.figure(figsize=(10, 10))
72
 
73
  # Plot the confusion matrix with a dark-mode compatible colormap
74
+ #sns.heatmap(cm, cmap="magma", cbar=True, linecolor='white', vmin=0, vmax=cm.max(), alpha=0.85)
75
+ sns.heatmap(cm, cmap="cividis", cbar=True, linecolor='white', vmin=0, vmax=cm.max(), alpha=0.85)
76
 
77
  # Add F1-score to the title
78
  plt.title(f"{title}\n(F1 Score: {avg_f1:.3f})", color="white", fontsize=14)