thbndi commited on
Commit
eeea3ca
·
1 Parent(s): d219522

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -1
Mimic4Dataset.py CHANGED
@@ -179,7 +179,8 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
179
  data_dir = path_bench + "/data/dataDic"
180
  sys.path.append(path_bench)
181
  config = self.config_path.split('/')[-1]
182
- script = 'python '+path_bench+'/cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
 
183
  os.system(script)
184
  return [
185
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
 
179
  data_dir = path_bench + "/data/dataDic"
180
  sys.path.append(path_bench)
181
  config = self.config_path.split('/')[-1]
182
+ os.chdir(path_bench)
183
+ script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
184
  os.system(script)
185
  return [
186
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),