Update cohort.py
Browse files
cohort.py
CHANGED
@@ -52,7 +52,7 @@ def task_cohort(task,mimic_path,path_benchmark, config_path):
|
|
52 |
|
53 |
#-----------------------------------------------EXTRACT MIMIC-----------------------------------------------------
|
54 |
if version == '2':
|
55 |
-
cohort_output =
|
56 |
elif version == '1':
|
57 |
cohort_output = day_intervals_cohort.extract_data(icu_no_icu,label,tim,icd_code, version_path,disease_label)
|
58 |
end = time.time()
|
@@ -124,7 +124,7 @@ if __name__ == '__main__':
|
|
124 |
sys.path.append(path_benchmark+'/utils')
|
125 |
sys.path.append(path_benchmark+'/preprocessing/hosp_module_preproc')
|
126 |
sys.path.append(path_benchmark+'/model')
|
127 |
-
import
|
128 |
import day_intervals_cohort
|
129 |
import feature_selection_icu
|
130 |
import data_generation_icu_modify
|
|
|
52 |
|
53 |
#-----------------------------------------------EXTRACT MIMIC-----------------------------------------------------
|
54 |
if version == '2':
|
55 |
+
cohort_output = day_intervals_cohort_v22.extract_data(icu_no_icu,label,tim,icd_code, version_path,disease_label)
|
56 |
elif version == '1':
|
57 |
cohort_output = day_intervals_cohort.extract_data(icu_no_icu,label,tim,icd_code, version_path,disease_label)
|
58 |
end = time.time()
|
|
|
124 |
sys.path.append(path_benchmark+'/utils')
|
125 |
sys.path.append(path_benchmark+'/preprocessing/hosp_module_preproc')
|
126 |
sys.path.append(path_benchmark+'/model')
|
127 |
+
import day_intervals_cohort_v22
|
128 |
import day_intervals_cohort
|
129 |
import feature_selection_icu
|
130 |
import data_generation_icu_modify
|