Update Mimic4Dataset.py
Browse files- 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 |
-
|
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']
|