Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -108,7 +108,7 @@ class EvalResult:
|
|
108 |
|
109 |
def to_dict(self):
|
110 |
"""Converts the Eval Result to a dict compatible with our dataframe display"""
|
111 |
-
average = sum([v for v in self.results.values() if v is not None]) / len(Tasks)
|
112 |
data_dict = {
|
113 |
"eval_name": self.eval_name, # not a column, just a save name,
|
114 |
AutoEvalColumn.precision.name: self.precision.value.name,
|
@@ -118,7 +118,7 @@ class EvalResult:
|
|
118 |
AutoEvalColumn.architecture.name: self.architecture,
|
119 |
AutoEvalColumn.model.name: make_clickable_model(self.full_model),
|
120 |
AutoEvalColumn.revision.name: self.revision,
|
121 |
-
AutoEvalColumn.average.name:
|
122 |
AutoEvalColumn.license.name: self.license,
|
123 |
AutoEvalColumn.likes.name: self.likes,
|
124 |
AutoEvalColumn.params.name: self.num_params,
|
|
|
108 |
|
109 |
def to_dict(self):
|
110 |
"""Converts the Eval Result to a dict compatible with our dataframe display"""
|
111 |
+
# average = sum([v for v in self.results.values() if v is not None]) / len(Tasks)
|
112 |
data_dict = {
|
113 |
"eval_name": self.eval_name, # not a column, just a save name,
|
114 |
AutoEvalColumn.precision.name: self.precision.value.name,
|
|
|
118 |
AutoEvalColumn.architecture.name: self.architecture,
|
119 |
AutoEvalColumn.model.name: make_clickable_model(self.full_model),
|
120 |
AutoEvalColumn.revision.name: self.revision,
|
121 |
+
AutoEvalColumn.average.name: None,
|
122 |
AutoEvalColumn.license.name: self.license,
|
123 |
AutoEvalColumn.likes.name: self.likes,
|
124 |
AutoEvalColumn.params.name: self.num_params,
|