Sadjad Alikhani commited on
Commit
ad8c1ce
·
verified ·
1 Parent(s): b6a7e6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,14 +176,14 @@ def display_confusion_matrices_los(percentage_idx):
176
  embeddings_folder = os.path.join(LOS_PATH, f"embedding_{percentage/100:.3f}_los_noTraining")
177
 
178
  # Process raw confusion matrix
179
- raw_csv_file = os.path.join(raw_folder, "confusion_matrix.csv")
180
  raw_cm_img_path = os.path.join(raw_folder, "confusion_matrix_raw.png")
181
  raw_img = plot_confusion_matrix_from_csv(raw_csv_file,
182
  f"Raw Confusion Matrix ({percentage:.1f}% data)",
183
  raw_cm_img_path)
184
 
185
  # Process embeddings confusion matrix
186
- embeddings_csv_file = os.path.join(embeddings_folder, "confusion_matrix.csv")
187
  embeddings_cm_img_path = os.path.join(embeddings_folder, "confusion_matrix_embeddings.png")
188
  embeddings_img = plot_confusion_matrix_from_csv(embeddings_csv_file,
189
  f"Embeddings Confusion Matrix ({percentage:.1f}% data)",
 
176
  embeddings_folder = os.path.join(LOS_PATH, f"embedding_{percentage/100:.3f}_los_noTraining")
177
 
178
  # Process raw confusion matrix
179
+ raw_csv_file = os.path.join(raw_folder, f"test_predictions_raw_{percentage/100:.3f}_los.csv")
180
  raw_cm_img_path = os.path.join(raw_folder, "confusion_matrix_raw.png")
181
  raw_img = plot_confusion_matrix_from_csv(raw_csv_file,
182
  f"Raw Confusion Matrix ({percentage:.1f}% data)",
183
  raw_cm_img_path)
184
 
185
  # Process embeddings confusion matrix
186
+ embeddings_csv_file = os.path.join(embeddings_folder, f"test_predictions_embedding_{percentage/100:.3f}_los.csv")
187
  embeddings_cm_img_path = os.path.join(embeddings_folder, "confusion_matrix_embeddings.png")
188
  embeddings_img = plot_confusion_matrix_from_csv(embeddings_csv_file,
189
  f"Embeddings Confusion Matrix ({percentage:.1f}% data)",