wi-lab commited on
Commit
4e48cc5
·
verified ·
1 Parent(s): 3c003bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -194,8 +194,8 @@ def plot_confusion_matrix_from_csv(csv_file_path, title, save_path, light_mode=F
194
  plt.title(f"{title}\nF1 Score: {f1:.3f}", color=text_color, fontsize=18)
195
 
196
  # Customize tick labels for light/dark mode
197
- plt.xticks([0.5, 1.5], labels=['Class 0', 'Class 1'], color=text_color, fontsize=12)
198
- plt.yticks([0.5, 1.5], labels=['Class 0', 'Class 1'], color=text_color, fontsize=12)
199
 
200
  plt.ylabel('True label', color=text_color, fontsize=14)
201
  plt.xlabel('Predicted label', color=text_color, fontsize=14)
@@ -365,8 +365,8 @@ def plot_confusion_matrix(y_true, y_pred, title, light_mode=False):
365
  plt.title(f"{title}\nF1 Score: {f1:.3f}", color=text_color, fontsize=18)
366
 
367
  # Customize tick labels for dark mode
368
- plt.xticks([0.5, 1.5], labels=['Class 0', 'Class 1'], color=text_color, fontsize=12)
369
- plt.yticks([0.5, 1.5], labels=['Class 0', 'Class 1'], color=text_color, fontsize=12)
370
 
371
  plt.ylabel('True label', color=text_color, fontsize=14)
372
  plt.xlabel('Predicted label', color=text_color, fontsize=14)
 
194
  plt.title(f"{title}\nF1 Score: {f1:.3f}", color=text_color, fontsize=18)
195
 
196
  # Customize tick labels for light/dark mode
197
+ plt.xticks([0.5, 1.5], labels=['NLoS', 'LoS'], color=text_color, fontsize=12)
198
+ plt.yticks([0.5, 1.5], labels=['NLoS', 'LoS'], color=text_color, fontsize=12)
199
 
200
  plt.ylabel('True label', color=text_color, fontsize=14)
201
  plt.xlabel('Predicted label', color=text_color, fontsize=14)
 
365
  plt.title(f"{title}\nF1 Score: {f1:.3f}", color=text_color, fontsize=18)
366
 
367
  # Customize tick labels for dark mode
368
+ plt.xticks([0.5, 1.5], labels=['NLoS', 'LoS'], color=text_color, fontsize=12)
369
+ plt.yticks([0.5, 1.5], labels=['NLoS', 'LoS'], color=text_color, fontsize=12)
370
 
371
  plt.ylabel('True label', color=text_color, fontsize=14)
372
  plt.xlabel('Predicted label', color=text_color, fontsize=14)