michal commited on
Commit
7318493
·
1 Parent(s): b8220f8

round params

Browse files
src/structures/leaderboard_structure.py CHANGED
@@ -43,6 +43,9 @@ def load_json_data(file_path, order_list):
43
  lambda lang_code: lang_replacements.get(lang_code, lang_code) # Replace using the dictionary, keep original if not found
44
  )
45
 
 
 
 
46
  ordered_columns = [col for col in order_list if col in LB_LLMZSZL.columns]
47
  LB_LLMZSZL = LB_LLMZSZL[ordered_columns]
48
  LB_LLMZSZL = LB_LLMZSZL.sort_values(by="Score", ascending=False)
 
43
  lambda lang_code: lang_replacements.get(lang_code, lang_code) # Replace using the dictionary, keep original if not found
44
  )
45
 
46
+ if "Parameters (B)" in LB_LLMZSZL.columns:
47
+ LB_LLMZSZL["Parameters (B)"] = LB_LLMZSZL["Parameters (B)"].astype(float).round(1)
48
+
49
  ordered_columns = [col for col in order_list if col in LB_LLMZSZL.columns]
50
  LB_LLMZSZL = LB_LLMZSZL[ordered_columns]
51
  LB_LLMZSZL = LB_LLMZSZL.sort_values(by="Score", ascending=False)