thbndi commited on
Commit
3fd11f7
·
1 Parent(s): 1f87786

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +5 -3
Mimic4Dataset.py CHANGED
@@ -80,19 +80,19 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
80
  "signal":
81
  {
82
  "id": datasets.Sequence(datasets.Value("int32")),
83
- "value": datasets.Sequence(datasets.Value("float32"))
84
  }
85
  ,
86
  "rate":
87
  {
88
  "id": datasets.Value("int32"),
89
- "value": datasets.Sequence(datasets.Value("float32"))
90
  }
91
  ,
92
  "amount":
93
  {
94
  "id": datasets.Value("int32"),
95
- "value": datasets.Sequence(datasets.Value("float32"))
96
  }
97
 
98
  },
@@ -185,9 +185,11 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
185
  values_meds_amount =[meds_features['amount'][i] for i in items_meds_amount ]
186
  meds_amount = {"id" : items_meds_amount,
187
  "value": values_meds_amount}
 
188
  meds = {"signal" : meds_sig,
189
  "rate" : meds_rate,
190
  "amount" : meds_amount}
 
191
  yield int(hid), {
192
  "label" : label,
193
  "gender" : gender,
 
80
  "signal":
81
  {
82
  "id": datasets.Sequence(datasets.Value("int32")),
83
+ "value": datasets.Sequence(datasets.Sequence(datasets.Value("float32")))
84
  }
85
  ,
86
  "rate":
87
  {
88
  "id": datasets.Value("int32"),
89
+ "value": datasets.Sequence(datasets.Sequence(datasets.Value("float32")))
90
  }
91
  ,
92
  "amount":
93
  {
94
  "id": datasets.Value("int32"),
95
+ "value": datasets.Sequence(datasets.Sequence(datasets.Value("float32")))
96
  }
97
 
98
  },
 
185
  values_meds_amount =[meds_features['amount'][i] for i in items_meds_amount ]
186
  meds_amount = {"id" : items_meds_amount,
187
  "value": values_meds_amount}
188
+
189
  meds = {"signal" : meds_sig,
190
  "rate" : meds_rate,
191
  "amount" : meds_amount}
192
+
193
  yield int(hid), {
194
  "label" : label,
195
  "gender" : gender,