Spaces:
Running
Running
Sadjad Alikhani
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def plot_confusion_matrix_beamPred(cm, classes, title, save_path):
|
|
71 |
plt.figure(figsize=(5, 5))
|
72 |
|
73 |
# Plot the confusion matrix with a dark-mode compatible colormap
|
74 |
-
sns.heatmap(cm,
|
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=(5, 5))
|
72 |
|
73 |
# Plot the confusion matrix with a dark-mode compatible colormap
|
74 |
+
sns.heatmap(cm, cmap="magma", cbar=False, linecolor='white')
|
75 |
|
76 |
# Add F1-score to the title
|
77 |
plt.title(f"{title}\n(F1 Score: {avg_f1:.3f})", color="white", fontsize=14)
|