Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +3 -3
Mimic4Dataset.py
CHANGED
@@ -225,10 +225,10 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
225 |
sys.path.append(path_bench)
|
226 |
config = self.config_path.split('/')[-1]
|
227 |
|
228 |
-
script = 'python
|
229 |
print(script)
|
230 |
-
|
231 |
-
|
232 |
return [
|
233 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
|
234 |
]
|
|
|
225 |
sys.path.append(path_bench)
|
226 |
config = self.config_path.split('/')[-1]
|
227 |
|
228 |
+
script = 'python cohort.py '+ self.config.name.replace(" ","_") +" "+ self.mimic_path+ " "+path_bench+ " "+config
|
229 |
print(script)
|
230 |
+
if not os.path.exists(data_dir) :
|
231 |
+
os.system(script)
|
232 |
return [
|
233 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
|
234 |
]
|