mgyigit commited on
Commit
b76dece
1 Parent(s): 508ed01

Update src/saving_utils.py

Browse files
Files changed (1) hide show
  1. src/saving_utils.py +2 -2
src/saving_utils.py CHANGED
@@ -15,8 +15,8 @@ def get_baseline_df(selected_methods, selected_metrics, leaderboard_path="/tmp/l
15
  leaderboard_df = pd.read_csv(leaderboard_path)
16
 
17
  if selected_methods is not None and selected_metrics is not None:
18
- present_columns = ["method_name"] + selected_metrics
19
- leaderboard_df = leaderboard_df[leaderboard_df['method_name'].isin(selected_methods)][present_columns]
20
  return leaderboard_df
21
 
22
 
 
15
  leaderboard_df = pd.read_csv(leaderboard_path)
16
 
17
  if selected_methods is not None and selected_metrics is not None:
18
+ present_columns = ["Method"] + selected_metrics
19
+ leaderboard_df = leaderboard_df[leaderboard_df['Method'].isin(selected_methods)][present_columns]
20
  return leaderboard_df
21
 
22