Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -0
Mimic4Dataset.py
CHANGED
@@ -942,6 +942,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
942 |
label = data['label']
|
943 |
demo=demo.drop(['label'],axis=1)
|
944 |
X= getXY(dyn_df,cond_df,demo,concat_cols,True)
|
|
|
945 |
yield int(i), {
|
946 |
"label": label,
|
947 |
"onehot": X,
|
|
|
942 |
label = data['label']
|
943 |
demo=demo.drop(['label'],axis=1)
|
944 |
X= getXY(dyn_df,cond_df,demo,concat_cols,True)
|
945 |
+
X=X.to_numpy()
|
946 |
yield int(i), {
|
947 |
"label": label,
|
948 |
"onehot": X,
|