Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -4
Mimic4Dataset.py
CHANGED
@@ -44,10 +44,8 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
44 |
if not os.path.exists(self.mimic_path):
|
45 |
raise ValueError("The path of the mimic4 data does not exist")
|
46 |
|
47 |
-
super().__init__(**kwargs)
|
48 |
self.config_path = kwargs.get("config_path",None)
|
49 |
-
|
50 |
-
|
51 |
|
52 |
|
53 |
BUILDER_CONFIGS = [
|
@@ -134,7 +132,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
134 |
)
|
135 |
|
136 |
def _split_generators(self, dl_manager: datasets.DownloadManager()):
|
137 |
-
print(self.
|
138 |
if self.name == 'Phenotype' and self.config_path is None : self.config_path = _CONFIG_URLS['phenotype']
|
139 |
if self.name == 'Readmission' and self.config_path is None : self.config_path = _CONFIG_URLS['readmission']
|
140 |
if self.name == 'Length of Stay' and self.config_path is None : self.config_path = _CONFIG_URLS['los']
|
|
|
44 |
if not os.path.exists(self.mimic_path):
|
45 |
raise ValueError("The path of the mimic4 data does not exist")
|
46 |
|
|
|
47 |
self.config_path = kwargs.get("config_path",None)
|
48 |
+
super().__init__(**kwargs)
|
|
|
49 |
|
50 |
|
51 |
BUILDER_CONFIGS = [
|
|
|
132 |
)
|
133 |
|
134 |
def _split_generators(self, dl_manager: datasets.DownloadManager()):
|
135 |
+
print(self.config_path)
|
136 |
if self.name == 'Phenotype' and self.config_path is None : self.config_path = _CONFIG_URLS['phenotype']
|
137 |
if self.name == 'Readmission' and self.config_path is None : self.config_path = _CONFIG_URLS['readmission']
|
138 |
if self.name == 'Length of Stay' and self.config_path is None : self.config_path = _CONFIG_URLS['los']
|