Spaces:
Sleeping
Sleeping
Update src/saving_utils.py
Browse files- 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 |
-
|
18 |
-
|
|
|
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 |
|