Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -2
Mimic4Dataset.py
CHANGED
@@ -107,7 +107,7 @@ def vocab(task,diag_flag,proc_flag,out_flag,chart_flag,med_flag,lab_flag):
|
|
107 |
with open ('./data/dict/'+task+'/'+file, 'rb') as fp:
|
108 |
labVocabDict = pickle.load(fp)
|
109 |
|
110 |
-
return
|
111 |
|
112 |
|
113 |
def concat_data(data,task,feat_cond=False,feat_proc=False,feat_out=False,feat_chart=False,feat_meds=False):
|
@@ -323,7 +323,7 @@ def getXY_deep(X_df,task,feat_cond,feat_chart,feat_proc, feat_meds, feat_out):
|
|
323 |
y_df=torch.tensor(y_df)
|
324 |
y_df=y_df.type(torch.LongTensor)
|
325 |
|
326 |
-
return meds,chart,out,proc,lab ,stat_df, demo_df, y_df
|
327 |
|
328 |
def getXY(dyn,stat,demo,concat_cols,concat):
|
329 |
X_df=pd.DataFrame()
|
|
|
107 |
with open ('./data/dict/'+task+'/'+file, 'rb') as fp:
|
108 |
labVocabDict = pickle.load(fp)
|
109 |
|
110 |
+
return ethVocabDict,genderVocabDict,ageVocabDict,insVocabDict
|
111 |
|
112 |
|
113 |
def concat_data(data,task,feat_cond=False,feat_proc=False,feat_out=False,feat_chart=False,feat_meds=False):
|
|
|
323 |
y_df=torch.tensor(y_df)
|
324 |
y_df=y_df.type(torch.LongTensor)
|
325 |
|
326 |
+
return (meds,chart,out,proc,lab ,stat_df, demo_df, y_df )
|
327 |
|
328 |
def getXY(dyn,stat,demo,concat_cols,concat):
|
329 |
X_df=pd.DataFrame()
|