Update src/leaderboard/read_evals.py (#6)
Browse files- Update src/leaderboard/read_evals.py (cf1bad4b8f3fc8fb9093f4a2673ff570d2b433f3)
Co-authored-by: Jack Cole <jcole1@users.noreply.huggingface.co>
src/leaderboard/read_evals.py
CHANGED
@@ -197,7 +197,7 @@ def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResu
|
|
197 |
for result in eval_results.values():
|
198 |
result.average = np.mean(list(result.results.values()))
|
199 |
sorted_results = sorted(eval_results.values(), key=lambda r: r.average, reverse=True)
|
200 |
-
|
201 |
for i,v in enumerate(sorted_results):
|
202 |
try:
|
203 |
v.to_dict(i) # we test if the dict version is complete
|
|
|
197 |
for result in eval_results.values():
|
198 |
result.average = np.mean(list(result.results.values()))
|
199 |
sorted_results = sorted(eval_results.values(), key=lambda r: r.average, reverse=True)
|
200 |
+
print(f"SORTED RESULTS HERE: \n{sorted_results}")
|
201 |
for i,v in enumerate(sorted_results):
|
202 |
try:
|
203 |
v.to_dict(i) # we test if the dict version is complete
|