thbndi commited on
Commit
d44d7bd
·
1 Parent(s): 7bdb194

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +4 -1
Mimic4Dataset.py CHANGED
@@ -353,11 +353,13 @@ def getXY_deep(data,task,feat_cond,feat_proc,feat_out,feat_chart,feat_meds):
353
  if feat_chart:
354
  charts = dyn['CHART']
355
  charts=charts.to_numpy()
 
356
  charts = torch.tensor(charts)
357
  charts = charts.unsqueeze(0)
358
  charts = torch.tensor(charts)
 
359
  charts = charts.type(torch.LongTensor)
360
-
361
  if feat_meds:
362
  meds = dyn['MEDS']
363
  meds=meds.to_numpy()
@@ -400,6 +402,7 @@ def getXY_deep(data,task,feat_cond,feat_proc,feat_out,feat_chart,feat_meds):
400
  stat_df = torch.cat((stat_df,stat),0)
401
  else:
402
  stat_df = stat
 
403
 
404
  y = int(demo['label'])
405
 
 
353
  if feat_chart:
354
  charts = dyn['CHART']
355
  charts=charts.to_numpy()
356
+
357
  charts = torch.tensor(charts)
358
  charts = charts.unsqueeze(0)
359
  charts = torch.tensor(charts)
360
+ print('convert')
361
  charts = charts.type(torch.LongTensor)
362
+ print('charts ok')
363
  if feat_meds:
364
  meds = dyn['MEDS']
365
  meds=meds.to_numpy()
 
402
  stat_df = torch.cat((stat_df,stat),0)
403
  else:
404
  stat_df = stat
405
+ print('stat ok')
406
 
407
  y = int(demo['label'])
408