Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -3,8 +3,6 @@ import json
|
|
3 |
import math
|
4 |
import os
|
5 |
from dataclasses import dataclass
|
6 |
-
from decimal import Decimal
|
7 |
-
|
8 |
import dateutil
|
9 |
import numpy as np
|
10 |
|
@@ -76,9 +74,8 @@ class EvalResult:
|
|
76 |
for task in Tasks:
|
77 |
task_value = task.value
|
78 |
print("task_value", task_value)
|
79 |
-
|
80 |
-
results[task_value.metric] =
|
81 |
-
print("results", results)
|
82 |
|
83 |
|
84 |
return self(
|
|
|
3 |
import math
|
4 |
import os
|
5 |
from dataclasses import dataclass
|
|
|
|
|
6 |
import dateutil
|
7 |
import numpy as np
|
8 |
|
|
|
74 |
for task in Tasks:
|
75 |
task_value = task.value
|
76 |
print("task_value", task_value)
|
77 |
+
score = scores.get(task_value.metric)
|
78 |
+
results[task_value.metric] = score
|
|
|
79 |
|
80 |
|
81 |
return self(
|