thbndi commited on
Commit
4578bb4
·
1 Parent(s): bd90d8b

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -1
Mimic4Dataset.py CHANGED
@@ -44,6 +44,7 @@ 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
  self.config_path = kwargs.get("config_path",None)
48
  self.task = kwargs.get("name",None)
49
  if self.task == 'Phenotype' and self.config_path is None : self.config_path = _CONFIG_URLS['phenotype']
@@ -52,7 +53,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
52
  if self.task == 'Mortality' and self.config_path is None : self.config_path = _CONFIG_URLS['mortality']
53
  print(self.config_path)
54
  print(self.task)
55
- super().__init__(**kwargs)
56
 
57
  BUILDER_CONFIGS = [
58
  Mimic4DatasetConfig(
 
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
  self.task = kwargs.get("name",None)
50
  if self.task == 'Phenotype' and self.config_path is None : self.config_path = _CONFIG_URLS['phenotype']
 
53
  if self.task == 'Mortality' and self.config_path is None : self.config_path = _CONFIG_URLS['mortality']
54
  print(self.config_path)
55
  print(self.task)
56
+
57
 
58
  BUILDER_CONFIGS = [
59
  Mimic4DatasetConfig(