thbndi commited on
Commit
0767865
·
1 Parent(s): 8a08aed

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +4 -12
Mimic4Dataset.py CHANGED
@@ -156,12 +156,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
156
  age = data['age']
157
  gender = data['gender']
158
  label = data['label']
159
-
160
- # Convert integer PROC feature to dictionary
161
- if isinstance(proc_features, int):
162
- proc_features = {proc_features: []}
163
- if isinstance(out_features, int):
164
- proc_features = {out_features: []}
165
 
166
  yield hid, {
167
  "gender" : gender,
@@ -172,12 +167,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
172
  "rate" : meds_features['rate'],
173
  "amount" : meds_features['amount']
174
  },
175
- "PROC" : proc_features,
176
- "CHART" : {
177
- "signal" : chart_features['signal'],
178
- "val" : chart_features['val']
179
- },
180
- "OUT" : out_features,
181
  "COND" : cond_features,
182
  "label" : label
183
  }
 
156
  age = data['age']
157
  gender = data['gender']
158
  label = data['label']
159
+
 
 
 
 
 
160
 
161
  yield hid, {
162
  "gender" : gender,
 
167
  "rate" : meds_features['rate'],
168
  "amount" : meds_features['amount']
169
  },
170
+ "PROC" : None,
171
+ "CHART" : None,
172
+ "OUT" : None,
 
 
 
173
  "COND" : cond_features,
174
  "label" : label
175
  }