thbndi commited on
Commit
6fbc2db
·
1 Parent(s): bf83601

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +4 -1
Mimic4Dataset.py CHANGED
@@ -978,10 +978,13 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
978
 
979
  #############################################################################################################################
980
  def _info(self):
 
 
 
981
  with open(self.conf) as f:
982
  config = yaml.safe_load(f)
983
  self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out = config['diagnosis'], config['chart'], config['proc'], config['meds'], config['output']
984
- self.path = self.create_cohort()
985
  if self.encoding == 'onehot' :
986
  return self._info_encoded()
987
 
 
978
 
979
  #############################################################################################################################
980
  def _info(self):
981
+
982
+ self.path = self.create_cohort()
983
+
984
  with open(self.conf) as f:
985
  config = yaml.safe_load(f)
986
  self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out = config['diagnosis'], config['chart'], config['proc'], config['meds'], config['output']
987
+
988
  if self.encoding == 'onehot' :
989
  return self._info_encoded()
990