Update cohort.py
Browse files
cohort.py
CHANGED
@@ -17,6 +17,8 @@ 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]
|
22 |
print(version)
|
|
|
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)
|
22 |
version_path = mimic_path
|
23 |
version = version_path.split('/')[-1][0]
|
24 |
print(version)
|