mgyigit commited on
Commit
c3045c6
1 Parent(s): c939ef1

Update src/saving_utils.py

Browse files
Files changed (1) hide show
  1. src/saving_utils.py +3 -2
src/saving_utils.py CHANGED
@@ -14,8 +14,9 @@ def get_baseline_df(selected_methods, selected_metrics, leaderboard_path="/tmp/l
14
 
15
  leaderboard_df = pd.read_csv(leaderboard_path)
16
 
17
- present_columns = ["method_name"] + selected_metrics
18
- leaderboard_df = leaderboard_df[leaderboard_df['method_name'].isin(selected_methods)][present_columns]
 
19
  return leaderboard_df
20
 
21
 
 
14
 
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