Update src/populate.py
Browse files- src/populate.py +0 -2
src/populate.py
CHANGED
@@ -15,7 +15,6 @@ 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 |
-
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)]
|
@@ -26,7 +25,6 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
26 |
|
27 |
# filter out if any of the benchmarks have not been produced
|
28 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
29 |
-
print(df)
|
30 |
return df
|
31 |
|
32 |
|
|
|
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)]
|
|
|
25 |
|
26 |
# filter out if any of the benchmarks have not been produced
|
27 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
|
|
28 |
return df
|
29 |
|
30 |
|