Joschka Strueber commited on
Commit
140bdab
·
1 Parent(s): 2535891

[Ref] error handling

Browse files
Files changed (1) hide show
  1. src/similarity.py +1 -1
src/similarity.py CHANGED
@@ -6,7 +6,7 @@ def compute_similarity(selected_model_a, selected_model_b, selected_dataset):
6
  probs_a, gt_a = load_run_data(selected_model_a, selected_dataset)
7
  probs_b, gt_b = load_run_data(selected_model_b, selected_dataset)
8
 
9
- assert len(probs_a) == len(probs_b), "Models must have the same number of responses"
10
 
11
  # Only keep responses where the ground truth is the same
12
  output_a = []
 
6
  probs_a, gt_a = load_run_data(selected_model_a, selected_dataset)
7
  probs_b, gt_b = load_run_data(selected_model_b, selected_dataset)
8
 
9
+ assert len(probs_a) == len(probs_b), f"Models must have the same number of responses: {len(probs_a)} != {len(probs_b)}"
10
 
11
  # Only keep responses where the ground truth is the same
12
  output_a = []