Update src/populate.py
Browse files- 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)]
|