Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -97,7 +97,6 @@ class EvalResult:
|
|
97 |
raise KeyError(f"'scores' key not found in JSON file: {json_filepath}")
|
98 |
|
99 |
scores = data["scores"]
|
100 |
-
print(f"Scores: {data.get('scores', {})}")
|
101 |
results = {}
|
102 |
for task in Tasks:
|
103 |
task_value = task.value
|
@@ -162,6 +161,7 @@ class EvalResult:
|
|
162 |
for task in Tasks:
|
163 |
task_value = task.value
|
164 |
value = self.results.get(task_value.metric)
|
|
|
165 |
data_dict[task_value.col_name] = Decimal(value)
|
166 |
|
167 |
return data_dict
|
|
|
97 |
raise KeyError(f"'scores' key not found in JSON file: {json_filepath}")
|
98 |
|
99 |
scores = data["scores"]
|
|
|
100 |
results = {}
|
101 |
for task in Tasks:
|
102 |
task_value = task.value
|
|
|
161 |
for task in Tasks:
|
162 |
task_value = task.value
|
163 |
value = self.results.get(task_value.metric)
|
164 |
+
print(f"Task: {task_value.metric}, Score: {value}")
|
165 |
data_dict[task_value.col_name] = Decimal(value)
|
166 |
|
167 |
return data_dict
|