Spaces:
Running
Running
[email protected]
commited on
Commit
·
40bc18c
1
Parent(s):
36b6f3b
update
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -74,7 +74,7 @@ class EvalResult:
|
|
74 |
# We average all scores of a given metric (not all metrics are present in all files)
|
75 |
accs = np.array([v.get(task.metric, None) for k, v in data["results"].items() if task.benchmark == k])
|
76 |
# if accs.size == 0 or any([acc is None for acc in accs]):
|
77 |
-
if accs.size == 0
|
78 |
continue
|
79 |
print(accs)
|
80 |
mean_acc = np.nanmean(accs) * 100.0
|
|
|
74 |
# We average all scores of a given metric (not all metrics are present in all files)
|
75 |
accs = np.array([v.get(task.metric, None) for k, v in data["results"].items() if task.benchmark == k])
|
76 |
# if accs.size == 0 or any([acc is None for acc in accs]):
|
77 |
+
if accs.size == 0:
|
78 |
continue
|
79 |
print(accs)
|
80 |
mean_acc = np.nanmean(accs) * 100.0
|