thbndi commited on
Commit
acbe092
·
1 Parent(s): 60640e0

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +1 -2
Mimic4Dataset.py CHANGED
@@ -28,7 +28,6 @@ class Mimic4DatasetConfig(datasets.BuilderConfig):
28
  **kwargs,
29
  ):
30
  super().__init__(**kwargs)
31
- self.mimic_path =mimic_path
32
 
33
 
34
  class Mimic4Dataset(datasets.GeneratorBasedBuilder):
@@ -133,7 +132,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
133
  if not os.path.exists(path_bench):
134
  #subprocess.run(["git", "clone", repo_url, path_bench])
135
  print("Please clone the repo")
136
- task_cohort(self.name,self.mimic_path, path_bench, self.config_path)
137
  return [
138
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir, "benchmark": path_bench}),
139
  ]
 
28
  **kwargs,
29
  ):
30
  super().__init__(**kwargs)
 
31
 
32
 
33
  class Mimic4Dataset(datasets.GeneratorBasedBuilder):
 
132
  if not os.path.exists(path_bench):
133
  #subprocess.run(["git", "clone", repo_url, path_bench])
134
  print("Please clone the repo")
135
+ task_cohort(self.name,self.config.mimic_path, path_bench, self.config.config_path)
136
  return [
137
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir, "benchmark": path_bench}),
138
  ]