xeon27
commited on
Commit
·
dea22be
1
Parent(s):
3fe6f00
Debug
Browse files- src/populate.py +7 -0
src/populate.py
CHANGED
@@ -14,6 +14,13 @@ 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 |
|
|
|
14 |
all_data_json = [v.to_dict() for v in raw_data]
|
15 |
|
16 |
df = pd.DataFrame.from_records(all_data_json)
|
17 |
+
|
18 |
+
## DEBUG
|
19 |
+
print(df.columns)
|
20 |
+
print(df.shape)
|
21 |
+
print(df.head())
|
22 |
+
####################
|
23 |
+
|
24 |
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
25 |
df = df[cols].round(decimals=2)
|
26 |
|