apsys commited on
Commit
48d8355
1 Parent(s): e535476

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +2 -0
src/populate.py CHANGED
@@ -28,6 +28,8 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
28
  continue
29
  interval = '+'+str(round(row['upper'] - row['score'], decimal))+' / '+str(round(row['lower'] - row['score'], decimal))
30
  df.at[i,'95% CI'] = interval
 
 
31
  df = df[cols].round(decimals=2)
32
 
33
  # filter out if any of the benchmarks have not been produced
 
28
  continue
29
  interval = '+'+str(round(row['upper'] - row['score'], decimal))+' / '+str(round(row['lower'] - row['score'], decimal))
30
  df.at[i,'95% CI'] = interval
31
+ df['model'] = df['model'].apply(lambda x: 'SberDevices-GigaChatMaxWithoutFilter' if x=='SberDevices-GigaChatMax' else x) # change naming as per request
32
+ df['model'] = df['model'].apply(lambda x: 'SberDevices-GigaChatMaxDefault' if x=='SberDevices-GigaChatMaxCensored' else x) # change naming as per request
33
  df = df[cols].round(decimals=2)
34
 
35
  # filter out if any of the benchmarks have not been produced