thbndi commited on
Commit
0690031
·
1 Parent(s): 7ef7d27

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +1 -1
Mimic4Dataset.py CHANGED
@@ -358,7 +358,7 @@ def getXY_deep(data,task,feat_cond,feat_proc,feat_out,feat_chart,feat_meds):
358
  charts = charts.unsqueeze(0)
359
  charts = torch.tensor(charts)
360
  charts = charts.type(torch.LongTensor)
361
- chart=chart.view(chart.shape[1],chart.shape[2])
362
 
363
  if feat_meds:
364
  meds = dyn['MEDS']
 
358
  charts = charts.unsqueeze(0)
359
  charts = torch.tensor(charts)
360
  charts = charts.type(torch.LongTensor)
361
+ charts=charts.view(charts.shape[1],charts.shape[2])
362
 
363
  if feat_meds:
364
  meds = dyn['MEDS']