File size: 693 Bytes
93f39a5
 
 
 
 
dde9150
93f39a5
 
 
b1f407e
dde9150
 
 
 
 
 
 
 
45c28eb
93f39a5
 
45c28eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import ipywidgets as widgets
import sys
from pathlib import Path
import os
import importlib
import shutil
import time
import yaml

def task_cohort(task,mimic_path,path_benchmark, config):
    root_dir = path_benchmark
    sys.path.append(path_benchmark+'/preprocessing/day_intervals_preproc')
    sys.path.append(path_benchmark+'/utils')
    sys.path.append(path_benchmark+'/preprocessing/hosp_module_preproc')
    sys.path.append(path_benchmark+'/model')
    import day_intervals_cohort_v2
    import day_intervals_cohort
    import feature_selection_icu
    #import data_generation_icu_modify
    version_path = mimic_path
    version = version_path.split('/')[-1][0]
    start = time.time()