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()