thbndi commited on
Commit
dde9150
·
1 Parent(s): 1f9bb1c

Update cohort.py

Browse files
Files changed (1) hide show
  1. cohort.py +11 -11
cohort.py CHANGED
@@ -3,20 +3,20 @@ import sys
3
  from pathlib import Path
4
  import os
5
  import importlib
6
- sys.path.append('preprocessing/day_intervals_preproc')
7
- sys.path.append('utils')
8
- sys.path.append('preprocessing/hosp_module_preproc')
9
- sys.path.append('model')
10
- #print(sys.path)
11
- root_dir = os.path.dirname(os.path.abspath('UserInterface.ipynb'))
12
- import day_intervals_cohort_v2
13
- import day_intervals_cohort
14
- import feature_selection_icu
15
- import data_generation_icu_modify
16
  import time
17
  import yaml
18
 
19
- def task_cohort(task,mimic_path):
 
 
 
 
 
 
 
 
 
20
  version_path = mimic_path
21
  version = version_path.split('/')[-1][0]
22
  start = time.time()
 
3
  from pathlib import Path
4
  import os
5
  import importlib
6
+ import shutil
 
 
 
 
 
 
 
 
 
7
  import time
8
  import yaml
9
 
10
+ def task_cohort(task,mimic_path,path_benchmark):
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()