Yu (Hope) Hou commited on
Commit
824753c
·
1 Parent(s): 6394427

fix average not found in populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +3 -1
src/populate.py CHANGED
@@ -14,7 +14,9 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
14
  all_data_json = [v.to_dict() for v in raw_data]
15
 
16
  df = pd.DataFrame.from_records(all_data_json)
17
- df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
 
 
18
  df = df[cols].round(decimals=2)
19
 
20
  # filter out if any of the benchmarks have not been produced
 
14
  all_data_json = [v.to_dict() for v in raw_data]
15
 
16
  df = pd.DataFrame.from_records(all_data_json)
17
+ # TODO: decide how to sort the leaderboard
18
+ # df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
19
+ df = df.sort_values(by=[AutoEvalColumn.model.name], ascending=False)
20
  df = df[cols].round(decimals=2)
21
 
22
  # filter out if any of the benchmarks have not been produced