Update cohort.py
Browse files
cohort.py
CHANGED
@@ -9,7 +9,7 @@ import yaml
|
|
9 |
|
10 |
def task_cohort(task,mimic_path,path_benchmark, config_path):
|
11 |
root_dir = path_benchmark
|
12 |
-
config_path=
|
13 |
with open(config_path) as f:
|
14 |
config = yaml.safe_load(f)
|
15 |
version_path = mimic_path
|
@@ -120,10 +120,10 @@ if __name__ == '__main__':
|
|
120 |
mimic_path = sys.argv[2]
|
121 |
path_benchmark = sys.argv[3]
|
122 |
config = sys.argv[4]
|
123 |
-
sys.path.append('
|
124 |
-
sys.path.append('
|
125 |
-
sys.path.append('
|
126 |
-
sys.path.append('
|
127 |
import day_intervals_cohort_v22
|
128 |
import day_intervals_cohort
|
129 |
import feature_selection_icu
|
|
|
9 |
|
10 |
def task_cohort(task,mimic_path,path_benchmark, config_path):
|
11 |
root_dir = path_benchmark
|
12 |
+
config_path='./config/'+config_path
|
13 |
with open(config_path) as f:
|
14 |
config = yaml.safe_load(f)
|
15 |
version_path = mimic_path
|
|
|
120 |
mimic_path = sys.argv[2]
|
121 |
path_benchmark = sys.argv[3]
|
122 |
config = sys.argv[4]
|
123 |
+
sys.path.append('/preprocessing/day_intervals_preproc')
|
124 |
+
sys.path.append('/utils')
|
125 |
+
sys.path.append('/preprocessing/hosp_module_preproc')
|
126 |
+
sys.path.append('/model')
|
127 |
import day_intervals_cohort_v22
|
128 |
import day_intervals_cohort
|
129 |
import feature_selection_icu
|