Set output path programmatically.

master
junos 2023-05-18 18:40:54 +02:00
parent 2336edffb6
commit fa45b30955
1 changed files with 4 additions and 5 deletions

View File

@ -116,9 +116,8 @@ data_y.shape
# %%
scores = run_all_classification_models(data_x, data_y, data_groups, cross_validator)
# %%
scores.to_csv(
"../presentation/results/appraisal_stressfulness_awake_classification_"
+ CV_METHOD
+ ".csv",
index=False,
PATH_OUTPUT = Path("..") / Path("presentation/results")
path_output_full = PATH_OUTPUT / (
TARGET_VARIABLE + SEGMENT_LENGTH + "_classification_" + CV_METHOD + ".csv"
)
scores.to_csv(path_output_full, index=False)