Update data_generation_icu_modify.py
Browse files
data_generation_icu_modify.py
CHANGED
@@ -388,7 +388,7 @@ class Generator():
|
|
388 |
|
389 |
for hid in self.hids:
|
390 |
grp=self.data[self.data['stay_id']==hid]
|
391 |
-
dataDic[hid]={'Cond':{},'Proc':{},'Med':{},'Out':{},'Chart':{},'ethnicity':grp['ethnicity'].iloc[0],'age':int(grp['Age']),'gender':grp['gender'].iloc[0],'label':int(grp['label'])}
|
392 |
|
393 |
|
394 |
for hid in tqdm(self.hids):
|
|
|
388 |
|
389 |
for hid in self.hids:
|
390 |
grp=self.data[self.data['stay_id']==hid]
|
391 |
+
dataDic[hid]={'Cond':{},'Proc':{},'Med':{},'Out':{},'Chart':{},'ethnicity':grp['ethnicity'].iloc[0],'age':int(grp['Age']),'gender':grp['gender'].iloc[0],'label':int(grp['label']),'insurance':grp['insurance'].iloc[0]}
|
392 |
|
393 |
|
394 |
for hid in tqdm(self.hids):
|