Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +12 -6
Mimic4Dataset.py
CHANGED
@@ -98,9 +98,12 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
98 |
)
|
99 |
}
|
100 |
),
|
101 |
-
"PROC":
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
104 |
"CHART": datasets.Sequence(
|
105 |
{
|
106 |
"signal" : datasets.Sequence(
|
@@ -116,9 +119,12 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
116 |
}
|
117 |
),
|
118 |
}),
|
119 |
-
"OUT":
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
122 |
"label": datasets.ClassLabel(names=["0", "1"]),
|
123 |
}
|
124 |
)
|
|
|
98 |
)
|
99 |
}
|
100 |
),
|
101 |
+
"PROC": datasets.Sequence(
|
102 |
+
{
|
103 |
+
"key": datasets.Value("int32"),
|
104 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
105 |
+
}
|
106 |
+
)
|
107 |
"CHART": datasets.Sequence(
|
108 |
{
|
109 |
"signal" : datasets.Sequence(
|
|
|
119 |
}
|
120 |
),
|
121 |
}),
|
122 |
+
"OUT": datasets.Sequence(
|
123 |
+
{
|
124 |
+
"key": datasets.Value("int32"),
|
125 |
+
"value": datasets.Sequence(datasets.Value("float32"))
|
126 |
+
}
|
127 |
+
)
|
128 |
"label": datasets.ClassLabel(names=["0", "1"]),
|
129 |
}
|
130 |
)
|