Spaces:
Running
Running
types fix + mmluproru
Browse files
src/leaderboard/build_leaderboard.py
CHANGED
@@ -71,8 +71,9 @@ def build_leadearboard_df():
|
|
71 |
df['mmluproru'] = df['mmluproru'].fillna(0)
|
72 |
else:
|
73 |
df['mmluproru'] = 0
|
74 |
-
leaderboard_df = [['model','mmluproru','moviesmc','musicmc','lawmc','booksmc','model_dtype','ppl']]
|
75 |
-
leaderboard_df['avg'] = leaderboard_df[['moviesmc','musicmc','lawmc','booksmc','mmluproru']].mean(axis=1)
|
|
|
76 |
numeric_cols = leaderboard_df.select_dtypes(include=['number']).columns
|
77 |
leaderboard_df[numeric_cols] = leaderboard_df[numeric_cols].round(3)
|
78 |
return leaderboard_df.copy()
|
|
|
71 |
df['mmluproru'] = df['mmluproru'].fillna(0)
|
72 |
else:
|
73 |
df['mmluproru'] = 0
|
74 |
+
leaderboard_df = df[['model','mmluproru','moviesmc','musicmc','lawmc','booksmc','model_dtype','ppl']]
|
75 |
+
leaderboard_df['avg ⬆️'] = leaderboard_df[['moviesmc','musicmc','lawmc','booksmc','mmluproru']].mean(axis=1)
|
76 |
+
leaderboard_df.sort_values(by='avg ⬆️',ascending=False,inplace=True)
|
77 |
numeric_cols = leaderboard_df.select_dtypes(include=['number']).columns
|
78 |
leaderboard_df[numeric_cols] = leaderboard_df[numeric_cols].round(3)
|
79 |
return leaderboard_df.copy()
|