Update cohort.py
Browse files
cohort.py
CHANGED
|
@@ -6,16 +6,17 @@ import importlib
|
|
| 6 |
import shutil
|
| 7 |
import time
|
| 8 |
import yaml
|
| 9 |
-
|
| 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 |
with open(config) as f:
|
| 21 |
config = yaml.safe_load(f)
|
|
|
|
| 6 |
import shutil
|
| 7 |
import time
|
| 8 |
import yaml
|
| 9 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def task_cohort(task,mimic_path,path_benchmark, config):
|
| 12 |
+
sys.path.append('/preprocessing/day_intervals_preproc')
|
| 13 |
+
sys.path.append('/utils')
|
| 14 |
+
sys.path.append('/preprocessing/hosp_module_preproc')
|
| 15 |
+
sys.path.append('/model')
|
| 16 |
+
import day_intervals_cohort_v2
|
| 17 |
+
import day_intervals_cohort
|
| 18 |
+
import feature_selection_icu
|
| 19 |
+
import data_generation_icu_modify
|
| 20 |
root_dir = path_benchmark
|
| 21 |
with open(config) as f:
|
| 22 |
config = yaml.safe_load(f)
|