thbndi commited on
Commit
75a3ee0
·
1 Parent(s): e85f125

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +5 -0
Mimic4Dataset.py CHANGED
@@ -20,6 +20,7 @@ _HOMEPAGE = "https://huggingface.co/datasets/thbndi/Mimic4Dataset"
20
  _CITATION = "https://proceedings.mlr.press/v193/gupta22a.html"
21
  _URL = "https://github.com/healthylaife/MIMIC-IV-Data-Pipeline"
22
  _DATA_GEN = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/data_generation_icu_modify.py'
 
23
  _COHORT = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/cohort.py'
24
  _CONFIG_URLS = {'los' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/los.config',
25
  'mortality' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/los.config',
@@ -166,6 +167,10 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
166
  if not os.path.exists(path_bench+'/model/data_generation_icu_modify.py'):
167
  file_path, head = urlretrieve(_DATA_GEN, "data_generation_icu_modify.py")
168
  shutil.move(file_path, path_bench+'/model')
 
 
 
 
169
 
170
  if not os.path.exists(path_bench+'/cohort.py'):
171
  file_path, head = urlretrieve(_COHORT, "cohort.py")
 
20
  _CITATION = "https://proceedings.mlr.press/v193/gupta22a.html"
21
  _URL = "https://github.com/healthylaife/MIMIC-IV-Data-Pipeline"
22
  _DATA_GEN = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/data_generation_icu_modify.py'
23
+ _DAY_INT= 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/day_intervals_cohort_v22.py'
24
  _COHORT = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/cohort.py'
25
  _CONFIG_URLS = {'los' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/los.config',
26
  'mortality' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/los.config',
 
167
  if not os.path.exists(path_bench+'/model/data_generation_icu_modify.py'):
168
  file_path, head = urlretrieve(_DATA_GEN, "data_generation_icu_modify.py")
169
  shutil.move(file_path, path_bench+'/model')
170
+
171
+ if not os.path.exists(path_bench+'/preprocessing/day_intervals_preproc/day_intervals_cohort_v22.py'):
172
+ file_path, head = urlretrieve(_DAY_INT, "day_intervals_cohort_v22.py")
173
+ shutil.move(file_path, path_bench+'/preprocessing/day_intervals_preproc')
174
 
175
  if not os.path.exists(path_bench+'/cohort.py'):
176
  file_path, head = urlretrieve(_COHORT, "cohort.py")