Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -1
Mimic4Dataset.py
CHANGED
@@ -764,6 +764,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
764 |
config = yaml.safe_load(f)
|
765 |
|
766 |
self.data_icu = config['icu_no_icu']=='ICU'
|
|
|
767 |
if self.data_icu:
|
768 |
self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out, self.lab = config['diagnosis'], config['chart'], config['proc'], config['meds'], config['output'], False
|
769 |
else:
|
@@ -1089,7 +1090,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
1089 |
#############################################################################################################################
|
1090 |
def _info(self):
|
1091 |
self.path = self.create_cohort()
|
1092 |
-
self.size_cond, self.size_proc, self.size_meds, self.size_out, self.size_chart, self.size_lab, eth_vocab,gender_vocab,age_vocab,ins_vocab=vocab(self.config.name.replace(" ","_"),self.feat_cond,self.feat_proc,self.feat_out,self.feat_chart,self.feat_meds,
|
1093 |
|
1094 |
if self.encoding == 'concat' :
|
1095 |
return self._info_encoded()
|
|
|
764 |
config = yaml.safe_load(f)
|
765 |
|
766 |
self.data_icu = config['icu_no_icu']=='ICU'
|
767 |
+
print(self.data_icu)
|
768 |
if self.data_icu:
|
769 |
self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out, self.lab = config['diagnosis'], config['chart'], config['proc'], config['meds'], config['output'], False
|
770 |
else:
|
|
|
1090 |
#############################################################################################################################
|
1091 |
def _info(self):
|
1092 |
self.path = self.create_cohort()
|
1093 |
+
self.size_cond, self.size_proc, self.size_meds, self.size_out, self.size_chart, self.size_lab, eth_vocab,gender_vocab,age_vocab,ins_vocab=vocab(self.config.name.replace(" ","_"),self.feat_cond,self.feat_proc,self.feat_out,self.feat_chart,self.feat_meds,self.feat_lab)
|
1094 |
|
1095 |
if self.encoding == 'concat' :
|
1096 |
return self._info_encoded()
|