kz-transformers commited on
Commit
91f06c7
·
verified ·
1 Parent(s): 381d6bd

Update src/leaderboard/build_leaderboard.py

Browse files
src/leaderboard/build_leaderboard.py CHANGED
@@ -79,13 +79,7 @@ def build_leadearboard_df():
79
  print(f)
80
  df = pd.DataFrame.from_records(f)
81
  print('FIRST DF READING: ', df.columns, df.shape)
82
- if len(df)==1:
83
- print('WE ARE HERE: ',df.shape)
84
- f=json.load(open("genned.json",'r'))
85
- df = pd.DataFrame.from_records(f)
86
- print(f)
87
 
88
- print('LEADERBOARD DF: ', df.columns, df.shape)
89
  leaderboard_df = df[['model', 'mmlu_translated_kk', 'kk_constitution_mc', 'kk_dastur_mc', 'kazakh_and_literature_unt_mc', 'kk_geography_unt_mc',
90
  'kk_world_history_unt_mc', 'kk_history_of_kazakhstan_unt_mc', 'kk_english_unt_mc', 'kk_biology_unt_mc',
91
  'kk_human_society_rights_unt_mc', 'model_dtype','ppl']]
 
79
  print(f)
80
  df = pd.DataFrame.from_records(f)
81
  print('FIRST DF READING: ', df.columns, df.shape)
 
 
 
 
 
82
 
 
83
  leaderboard_df = df[['model', 'mmlu_translated_kk', 'kk_constitution_mc', 'kk_dastur_mc', 'kazakh_and_literature_unt_mc', 'kk_geography_unt_mc',
84
  'kk_world_history_unt_mc', 'kk_history_of_kazakhstan_unt_mc', 'kk_english_unt_mc', 'kk_biology_unt_mc',
85
  'kk_human_society_rights_unt_mc', 'model_dtype','ppl']]