Terry Zhuo
commited on
Commit
•
55baf89
1
Parent(s):
4021735
update
Browse files- src/populate.py +1 -1
src/populate.py
CHANGED
@@ -45,6 +45,6 @@ def get_leaderboard_df(leaderboard_dataset: Dataset, cols: list):
|
|
45 |
df[AutoEvalColumn.average.name] = df.apply(lambda x: round((x[AutoEvalColumn.complete.name] + x[AutoEvalColumn.instruct.name]) / 2, 1) if not pd.isna(x[AutoEvalColumn.complete.name]) and not pd.isna(x[AutoEvalColumn.instruct.name]) else None, axis=1)
|
46 |
df[AutoEvalColumn.size_range.name] = df[AutoEvalColumn.size.name].apply(lambda x: next((k for k, v in NUMERIC_INTERVALS.items() if x in v), "?"))
|
47 |
df = make_clickable_model(df, AutoEvalColumn.model.name, AutoEvalColumn.link.name)
|
48 |
-
df = df.sort_values(by=[AutoEvalColumn.
|
49 |
df = df[cols].round(decimals=2)
|
50 |
return df
|
|
|
45 |
df[AutoEvalColumn.average.name] = df.apply(lambda x: round((x[AutoEvalColumn.complete.name] + x[AutoEvalColumn.instruct.name]) / 2, 1) if not pd.isna(x[AutoEvalColumn.complete.name]) and not pd.isna(x[AutoEvalColumn.instruct.name]) else None, axis=1)
|
46 |
df[AutoEvalColumn.size_range.name] = df[AutoEvalColumn.size.name].apply(lambda x: next((k for k, v in NUMERIC_INTERVALS.items() if x in v), "?"))
|
47 |
df = make_clickable_model(df, AutoEvalColumn.model.name, AutoEvalColumn.link.name)
|
48 |
+
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
49 |
df = df[cols].round(decimals=2)
|
50 |
return df
|