Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +33 -7
Mimic4Dataset.py
CHANGED
@@ -77,18 +77,44 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
77 |
"age": datasets.Value("int32"),
|
78 |
"COND": datasets.Sequence(datasets.Value("string")),
|
79 |
"MEDS": datasets.Sequence(
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
"PROC": datasets.Sequence(
|
86 |
{datasets.Value("int32"),datasets.Sequence(datasets.Value("int32"))}
|
87 |
),
|
88 |
"CHART": datasets.Sequence(
|
89 |
{
|
90 |
-
"signal" :
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}),
|
93 |
"OUT": datasets.Sequence(
|
94 |
{datasets.Value("int32"),datasets.Sequence(datasets.Value("int32"))}
|
|
|
77 |
"age": datasets.Value("int32"),
|
78 |
"COND": datasets.Sequence(datasets.Value("string")),
|
79 |
"MEDS": datasets.Sequence(
|
80 |
+
{
|
81 |
+
"signal": datasets.Sequence(
|
82 |
+
{
|
83 |
+
"key": datasets.Value("int32"),
|
84 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
85 |
+
}
|
86 |
+
),
|
87 |
+
"rate": datasets.Sequence(
|
88 |
+
{
|
89 |
+
"key": datasets.Value("int32"),
|
90 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
91 |
+
}
|
92 |
+
),
|
93 |
+
"amount": datasets.Sequence(
|
94 |
+
{
|
95 |
+
"key": datasets.Value("int32"),
|
96 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
97 |
+
}
|
98 |
+
)
|
99 |
+
}
|
100 |
+
),
|
101 |
"PROC": datasets.Sequence(
|
102 |
{datasets.Value("int32"),datasets.Sequence(datasets.Value("int32"))}
|
103 |
),
|
104 |
"CHART": datasets.Sequence(
|
105 |
{
|
106 |
+
"signal" : datasets.Sequence(
|
107 |
+
{
|
108 |
+
"key": datasets.Value("int32"),
|
109 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
110 |
+
}
|
111 |
+
),
|
112 |
+
"val" : datasets.Sequence(
|
113 |
+
{
|
114 |
+
"key": datasets.Value("int32"),
|
115 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
116 |
+
}
|
117 |
+
),
|
118 |
}),
|
119 |
"OUT": datasets.Sequence(
|
120 |
{datasets.Value("int32"),datasets.Sequence(datasets.Value("int32"))}
|