sh1gechan commited on
Commit
8aa51bc
1 Parent(s): 27fbd7a

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -2
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: average,
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,