Better handling of input filename.

master
junos 2023-05-18 19:03:53 +02:00
parent bb4445f1a8
commit 045b9fa0dc
1 changed files with 6 additions and 6 deletions

View File

@ -52,14 +52,14 @@ SEGMENT_TYPE = "period"
print("SEGMENT_TYPE: " + SEGMENT_TYPE)
SEGMENT_LENGTH = "30_minutes_before"
print("SEGMENT_LENGTH: " + SEGMENT_LENGTH)
TARGET_VARIABLE = "appraisal_stressfulness"
TARGET_VARIABLE = "JCQ_job_control"
print("TARGET_VARIABLE: " + TARGET_VARIABLE)
PATH_FULL = (
PATH_BASE
/ SEGMENT_LENGTH
/ ("input_" + TARGET_VARIABLE + "_" + SEGMENT_TYPE + "_mean.csv")
)
if "appraisal" in TARGET_VARIABLE:
TARGET_VARIABLE += "_"
TARGET_VARIABLE += SEGMENT_TYPE
PATH_FULL = PATH_BASE / SEGMENT_LENGTH / ("input_" + TARGET_VARIABLE + "_mean.csv")
model_input = pd.read_csv(PATH_FULL)