Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -5
Mimic4Dataset.py
CHANGED
@@ -41,28 +41,24 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
41 |
Mimic4DatasetConfig(
|
42 |
name="Phenotype",
|
43 |
version=VERSION,
|
44 |
-
data_dir=os.path.abspath("./data/dict/cohort_icu_readmission_30_I50"),
|
45 |
description="Dataset for mimic4 Phenotype task",
|
46 |
mimic_path = None
|
47 |
),
|
48 |
Mimic4DatasetConfig(
|
49 |
name="Readmission",
|
50 |
version=VERSION,
|
51 |
-
data_dir=os.path.abspath("./data/dict"),
|
52 |
description="Dataset for mimic4 Readmission task",
|
53 |
mimic_path = None
|
54 |
),
|
55 |
Mimic4DatasetConfig(
|
56 |
name="Length of Stay",
|
57 |
version=VERSION,
|
58 |
-
data_dir=os.path.abspath("./data/dict"),
|
59 |
description="Dataset for mimic4 Length of Stay task",
|
60 |
mimic_path = None
|
61 |
),
|
62 |
Mimic4DatasetConfig(
|
63 |
name="Mortality",
|
64 |
version=VERSION,
|
65 |
-
data_dir=os.path.abspath("./data/dict"),
|
66 |
description="Dataset for mimic4 Mortality task",
|
67 |
mimic_path = None
|
68 |
),
|
@@ -133,7 +129,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
133 |
repodir = os.getcwd()
|
134 |
path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
|
135 |
repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
|
136 |
-
data_dir = path_bench + "/dataDic"
|
137 |
if not os.path.exists(path_bench):
|
138 |
#subprocess.run(["git", "clone", repo_url, path_bench])
|
139 |
print('ok')
|
|
|
41 |
Mimic4DatasetConfig(
|
42 |
name="Phenotype",
|
43 |
version=VERSION,
|
|
|
44 |
description="Dataset for mimic4 Phenotype task",
|
45 |
mimic_path = None
|
46 |
),
|
47 |
Mimic4DatasetConfig(
|
48 |
name="Readmission",
|
49 |
version=VERSION,
|
|
|
50 |
description="Dataset for mimic4 Readmission task",
|
51 |
mimic_path = None
|
52 |
),
|
53 |
Mimic4DatasetConfig(
|
54 |
name="Length of Stay",
|
55 |
version=VERSION,
|
|
|
56 |
description="Dataset for mimic4 Length of Stay task",
|
57 |
mimic_path = None
|
58 |
),
|
59 |
Mimic4DatasetConfig(
|
60 |
name="Mortality",
|
61 |
version=VERSION,
|
|
|
62 |
description="Dataset for mimic4 Mortality task",
|
63 |
mimic_path = None
|
64 |
),
|
|
|
129 |
repodir = os.getcwd()
|
130 |
path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
|
131 |
repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
|
132 |
+
data_dir = path_bench + "/data/dataDic"
|
133 |
if not os.path.exists(path_bench):
|
134 |
#subprocess.run(["git", "clone", repo_url, path_bench])
|
135 |
print('ok')
|