Skip to content

Commit

Permalink
small fixed for cross-study setting
Browse files Browse the repository at this point in the history
  • Loading branch information
JudithBernett committed Oct 7, 2024
1 parent 31b4ba9 commit 2138142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drevalpy/visualization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def generate_model_names(test_mode, model_name, pred_file):
pred_setting = "randomize-" + "-".join(file_parts[1:-2])
elif pred_rand_rob == "robustness":
pred_setting = "-".join(file_parts[:2])
elif pred_rand_rob == "cross":
pred_setting = "cross-study-" + file_parts[2]
else:
raise ValueError(f"Unknown prediction setting: {pred_rand_rob}")
split = "_".join(os.path.basename(pred_file).split(".")[0].split("_")[-2:])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"randomization_mode": ["SVRC"],
"randomization_type": "permutation",
"n_trials_robustness": 2,
"cross_study_datasets": [],
"cross_study_datasets": ["GDSC2"],
"curve_curator": False,
"overwrite": False,
"optim_metric": "RMSE",
Expand Down

0 comments on commit 2138142

Please sign in to comment.