Ali-C137 commited on
Commit
9a9dba6
1 Parent(s): 8c9042f

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +1 -6
src/populate.py CHANGED
@@ -14,17 +14,12 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
14
  all_data_json = [v.to_dict() for v in raw_data]
15
 
16
  df = pd.DataFrame.from_records(all_data_json)
17
- print("\n1- num of elements in leaderboard is :", len(df))
18
  df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
19
  df = df[cols].round(decimals=2)
20
 
21
  # filter out if any of the benchmarks have not been produced
22
  df = df[has_no_nan_values(df, benchmark_cols)]
23
- print("\n")
24
- print(df['Model'])
25
- print("\n")
26
-
27
- print("\n2- num of elements in leaderboard is :", len(df))
28
 
29
  return raw_data, df
30
 
 
14
  all_data_json = [v.to_dict() for v in raw_data]
15
 
16
  df = pd.DataFrame.from_records(all_data_json)
 
17
  df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
18
  df = df[cols].round(decimals=2)
19
 
20
  # filter out if any of the benchmarks have not been produced
21
  df = df[has_no_nan_values(df, benchmark_cols)]
22
+ print("\nsrc/populate.py/get_leaderboard_df() : num of elements in leaderboard is :", len(df))
 
 
 
 
23
 
24
  return raw_data, df
25