Skip to content

Commit

Permalink
Fixed _restrict_task_results
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tabdeveloping committed Oct 18, 2024
1 parent ae5afb7 commit ca5014c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mteb/load_results/benchmark_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@

def _restrict_task_results(task_result: TaskResult, task: AbsTask) -> TaskResult:
splits = task.metadata.eval_splits
hf_subsets = set(task.metadata.hf_subsets_to_langscripts)
hf_subsets = getattr(
task, "hf_subsets", task.metadata.hf_subsets_to_langscripts.keys()
)
hf_subsets = set(hf_subsets)
new_scores = {}
seen_splits = set()
for split in task_result.scores:
Expand Down

0 comments on commit ca5014c

Please sign in to comment.