Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Minseok Bae
commited on
Commit
•
c3e9147
1
Parent(s):
156ef43
modified read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -65,11 +65,8 @@ class EvalResult:
|
|
65 |
|
66 |
# We average all scores of a given metric (not all metrics are present in all files)
|
67 |
accs = np.array([v.get(task.metric, None) for k, v in data["results"].items() if task.benchmark == k])
|
68 |
-
if accs.size == 0 or any([acc is None for acc in accs]):
|
69 |
-
continue
|
70 |
|
71 |
-
|
72 |
-
results[task.benchmark] = mean_acc
|
73 |
|
74 |
return self(
|
75 |
eval_name=result_key,
|
|
|
65 |
|
66 |
# We average all scores of a given metric (not all metrics are present in all files)
|
67 |
accs = np.array([v.get(task.metric, None) for k, v in data["results"].items() if task.benchmark == k])
|
|
|
|
|
68 |
|
69 |
+
results[task.benchmark] = accs
|
|
|
70 |
|
71 |
return self(
|
72 |
eval_name=result_key,
|