Update cohort.py
Browse files
cohort.py
CHANGED
@@ -6,17 +6,16 @@ import importlib
|
|
6 |
import shutil
|
7 |
import time
|
8 |
import yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
def task_cohort(task,mimic_path,path_benchmark, config):
|
11 |
root_dir = path_benchmark
|
12 |
-
sys.path.append(path_benchmark+'/preprocessing/day_intervals_preproc')
|
13 |
-
sys.path.append(path_benchmark+'/utils')
|
14 |
-
sys.path.append(path_benchmark+'/preprocessing/hosp_module_preproc')
|
15 |
-
sys.path.append(path_benchmark+'/model')
|
16 |
-
import day_intervals_cohort_v2
|
17 |
-
import day_intervals_cohort
|
18 |
-
import feature_selection_icu
|
19 |
-
#import data_generation_icu_modify
|
20 |
version_path = mimic_path
|
21 |
-
version = version_path.split('/')[-1][0]
|
22 |
-
start = time.time()
|
|
|
6 |
import shutil
|
7 |
import time
|
8 |
import yaml
|
9 |
+
sys.path.append('/preprocessing/day_intervals_preproc')
|
10 |
+
sys.path.append('/utils')
|
11 |
+
sys.path.append('/preprocessing/hosp_module_preproc')
|
12 |
+
sys.path.append('/model')
|
13 |
+
import day_intervals_cohort_v2
|
14 |
+
import day_intervals_cohort
|
15 |
+
import feature_selection_icu
|
16 |
+
import data_generation_icu_modify
|
17 |
|
18 |
def task_cohort(task,mimic_path,path_benchmark, config):
|
19 |
root_dir = path_benchmark
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
version_path = mimic_path
|
21 |
+
version = version_path.split('/')[-1][0]
|
|