Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +3 -0
Mimic4Dataset.py
CHANGED
@@ -79,6 +79,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
79 |
"label": datasets.ClassLabel(names=["0", "1"]),
|
80 |
"gender": datasets.Value("string"),
|
81 |
"ethnicity": datasets.Value("string"),
|
|
|
82 |
"age": datasets.Value("int32"),
|
83 |
"COND": datasets.Sequence(datasets.Value("string")),
|
84 |
"MEDS": {
|
@@ -220,6 +221,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
220 |
age = data['age']
|
221 |
gender = data['gender']
|
222 |
label = data['label']
|
|
|
223 |
|
224 |
items = list(proc_features.keys())
|
225 |
values =[proc_features[i] for i in items ]
|
@@ -289,6 +291,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
289 |
"label" : label,
|
290 |
"gender" : gender,
|
291 |
"ethnicity" : eth,
|
|
|
292 |
"age" : age,
|
293 |
"COND" : cond_features,
|
294 |
"PROC" : procs,
|
|
|
79 |
"label": datasets.ClassLabel(names=["0", "1"]),
|
80 |
"gender": datasets.Value("string"),
|
81 |
"ethnicity": datasets.Value("string"),
|
82 |
+
"insurance": datasets.Value("string"),
|
83 |
"age": datasets.Value("int32"),
|
84 |
"COND": datasets.Sequence(datasets.Value("string")),
|
85 |
"MEDS": {
|
|
|
221 |
age = data['age']
|
222 |
gender = data['gender']
|
223 |
label = data['label']
|
224 |
+
insurance=data['insurance']
|
225 |
|
226 |
items = list(proc_features.keys())
|
227 |
values =[proc_features[i] for i in items ]
|
|
|
291 |
"label" : label,
|
292 |
"gender" : gender,
|
293 |
"ethnicity" : eth,
|
294 |
+
"insurance" : insurance
|
295 |
"age" : age,
|
296 |
"COND" : cond_features,
|
297 |
"PROC" : procs,
|