Spaces:
Runtime error
Runtime error
meg-huggingface
commited on
Commit
·
632f9a2
1
Parent(s):
8deb9e4
Removing some extra print statements
Browse files
src/leaderboard/read_evals.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import glob
|
| 2 |
import json
|
| 3 |
-
import math
|
| 4 |
import os
|
| 5 |
from dataclasses import dataclass
|
| 6 |
|
|
@@ -184,8 +183,6 @@ def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResu
|
|
| 184 |
for file in files:
|
| 185 |
model_result_filepaths.append(os.path.join(root, file))
|
| 186 |
|
| 187 |
-
print("model results filepaths are")
|
| 188 |
-
print(model_result_filepaths)
|
| 189 |
eval_results = {}
|
| 190 |
for model_result_filepath in model_result_filepaths:
|
| 191 |
# Creation of result
|
|
@@ -207,10 +204,8 @@ def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResu
|
|
| 207 |
print(v)
|
| 208 |
try:
|
| 209 |
v.to_dict() # we test if the dict version is complete
|
| 210 |
-
print("As dict it is:")
|
| 211 |
-
print(v.to_dict())
|
| 212 |
results.append(v)
|
| 213 |
-
print("Results
|
| 214 |
print(results)
|
| 215 |
except KeyError as e: # not all eval values present
|
| 216 |
print("Key Error! Continuing.")
|
|
|
|
| 1 |
import glob
|
| 2 |
import json
|
|
|
|
| 3 |
import os
|
| 4 |
from dataclasses import dataclass
|
| 5 |
|
|
|
|
| 183 |
for file in files:
|
| 184 |
model_result_filepaths.append(os.path.join(root, file))
|
| 185 |
|
|
|
|
|
|
|
| 186 |
eval_results = {}
|
| 187 |
for model_result_filepath in model_result_filepaths:
|
| 188 |
# Creation of result
|
|
|
|
| 204 |
print(v)
|
| 205 |
try:
|
| 206 |
v.to_dict() # we test if the dict version is complete
|
|
|
|
|
|
|
| 207 |
results.append(v)
|
| 208 |
+
print("Results:")
|
| 209 |
print(results)
|
| 210 |
except KeyError as e: # not all eval values present
|
| 211 |
print("Key Error! Continuing.")
|