yangheng commited on
Commit
4cea197
1 Parent(s): b07edf0

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +1 -0
src/populate.py CHANGED
@@ -15,6 +15,7 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
15
  for result in raw_data:
16
  result.average = np.mean(list(result.results.values()))
17
  sorted_results = sorted(raw_data, key=lambda r: r.average, reverse=True)
 
18
  # ranks = [rank+1 for rank, value in enumerate(sorted_results)]
19
  # rank = [rank+1 for rank, value in enumerate(average)]
20
  all_data_json = [v.to_dict(i+1) for i, v in enumerate(raw_data)]
 
15
  for result in raw_data:
16
  result.average = np.mean(list(result.results.values()))
17
  sorted_results = sorted(raw_data, key=lambda r: r.average, reverse=True)
18
+ print(sorted_results)
19
  # ranks = [rank+1 for rank, value in enumerate(sorted_results)]
20
  # rank = [rank+1 for rank, value in enumerate(average)]
21
  all_data_json = [v.to_dict(i+1) for i, v in enumerate(raw_data)]