Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +4 -4
Mimic4Dataset.py
CHANGED
@@ -32,7 +32,7 @@ _CITATION = "https://proceedings.mlr.press/v193/gupta22a.html"
|
|
32 |
_URL = "https://github.com/healthylaife/MIMIC-IV-Data-Pipeline"
|
33 |
_DATA_GEN = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/data_generation_icu_modify.py'
|
34 |
_DAY_INT= 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/day_intervals_cohort_v22.py'
|
35 |
-
_COHORT = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/cohort.py'
|
36 |
_CONFIG_URLS = {'los' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/los.config',
|
37 |
'mortality' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/mortality.config',
|
38 |
'phenotype' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/phenotype.config',
|
@@ -624,9 +624,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
624 |
file_path, head = urlretrieve(_DAY_INT, "day_intervals_cohort_v22.py")
|
625 |
shutil.move(file_path, './preprocessing/day_intervals_preproc')
|
626 |
|
627 |
-
file_path, head = urlretrieve(_COHORT, "cohort.py")
|
628 |
-
if not os.path.exists('cohort.py'):
|
629 |
-
|
630 |
|
631 |
data_dir = "./data/dict/"+self.config.name.replace(" ","_")+"/dataDic"
|
632 |
sys.path.append(path_bench)
|
|
|
32 |
_URL = "https://github.com/healthylaife/MIMIC-IV-Data-Pipeline"
|
33 |
_DATA_GEN = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/data_generation_icu_modify.py'
|
34 |
_DAY_INT= 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/day_intervals_cohort_v22.py'
|
35 |
+
#_COHORT = 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/cohort.py'
|
36 |
_CONFIG_URLS = {'los' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/los.config',
|
37 |
'mortality' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/mortality.config',
|
38 |
'phenotype' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/resolve/main/config/phenotype.config',
|
|
|
624 |
file_path, head = urlretrieve(_DAY_INT, "day_intervals_cohort_v22.py")
|
625 |
shutil.move(file_path, './preprocessing/day_intervals_preproc')
|
626 |
|
627 |
+
#file_path, head = urlretrieve(_COHORT, "cohort.py")
|
628 |
+
#if not os.path.exists('cohort.py'):
|
629 |
+
# shutil.move(file_path, './')
|
630 |
|
631 |
data_dir = "./data/dict/"+self.config.name.replace(" ","_")+"/dataDic"
|
632 |
sys.path.append(path_bench)
|