Update dataset_utils.py
Browse files- dataset_utils.py +5 -6
dataset_utils.py
CHANGED
@@ -264,16 +264,15 @@ def generate_deep(data,task,feat_cond,feat_proc,feat_out,feat_chart,feat_meds,fe
|
|
264 |
size_cond, size_proc, size_meds, size_out, size_chart, size_lab, eth_vocab,gender_vocab,age_vocab,ins_vocab=vocab(task.replace(" ","_"),feat_cond,feat_proc,feat_out,feat_chart,feat_meds,False)
|
265 |
dyn,cond_df,demo=concat_data(data,task.replace(" ","_"),feat_cond,feat_proc,feat_out,feat_chart,feat_meds,feat_lab,condDict, procDict, outDict, chartDict, medDict)
|
266 |
if feat_chart:
|
267 |
-
charts = dyn['CHART'].values
|
268 |
if feat_meds:
|
269 |
-
meds = dyn['MEDS'].fillna(0)
|
270 |
-
meds=meds.values
|
271 |
if feat_proc:
|
272 |
-
proc = dyn['PROC'].values
|
273 |
if feat_out:
|
274 |
-
out = dyn['OUT'].values
|
275 |
if feat_lab:
|
276 |
-
lab = dyn['LAB'].values
|
277 |
if feat_cond:
|
278 |
stat=cond_df.values[0]
|
279 |
y = int(demo['label'])
|
|
|
264 |
size_cond, size_proc, size_meds, size_out, size_chart, size_lab, eth_vocab,gender_vocab,age_vocab,ins_vocab=vocab(task.replace(" ","_"),feat_cond,feat_proc,feat_out,feat_chart,feat_meds,False)
|
265 |
dyn,cond_df,demo=concat_data(data,task.replace(" ","_"),feat_cond,feat_proc,feat_out,feat_chart,feat_meds,feat_lab,condDict, procDict, outDict, chartDict, medDict)
|
266 |
if feat_chart:
|
267 |
+
charts = dyn['CHART'].fillna(0).values
|
268 |
if feat_meds:
|
269 |
+
meds = dyn['MEDS'].fillna(0).values
|
|
|
270 |
if feat_proc:
|
271 |
+
proc = dyn['PROC'].fillna(0).values
|
272 |
if feat_out:
|
273 |
+
out = dyn['OUT'].fillna(0).values
|
274 |
if feat_lab:
|
275 |
+
lab = dyn['LAB'].fillna(0).values
|
276 |
if feat_cond:
|
277 |
stat=cond_df.values[0]
|
278 |
y = int(demo['label'])
|