thbndi commited on
Commit
d7005f9
·
1 Parent(s): e23ced1

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +7 -7
Mimic4Dataset.py CHANGED
@@ -78,20 +78,20 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
78
  "COND": datasets.Sequence(datasets.Value("string")),
79
  "MEDS": datasets.Sequence(
80
  {
81
- "signal" : { datasets.Value("int32") : datasets.Sequence(datasets.Value("int32")) },
82
- "rate" : { datasets.Value("int32") : datasets.Sequence(datasets.Value("int32")) },
83
- "amount" : { datasets.Value("int32") : datasets.Sequence(datasets.Value("int32")) }
84
  }),
85
  "PROC": datasets.Sequence(
86
- {datasets.Value("int32") : datasets.Sequence(datasets.Value("int32"))}
87
  ),
88
  "CHART": datasets.Sequence(
89
  {
90
- "signal" : { datasets.Value("int32") : datasets.Sequence(datasets.Value("int32")) },
91
- "val" : { datasets.Value("int32") : datasets.Sequence(datasets.Value("int32")) }
92
  }),
93
  "OUT": datasets.Sequence(
94
- {datasets.Value("int32") : datasets.Sequence(datasets.Value("int32"))}
95
  ),
96
  "label": datasets.ClassLabel(names=["0", "1"]),
97
  }
 
78
  "COND": datasets.Sequence(datasets.Value("string")),
79
  "MEDS": datasets.Sequence(
80
  {
81
+ "signal" : { datasets.Value("int32"),datasets.Sequence(datasets.Value("int32")) },
82
+ "rate" : { datasets.Value("int32"),datasets.Sequence(datasets.Value("int32")) },
83
+ "amount" : { datasets.Value("int32"),datasets.Sequence(datasets.Value("int32")) }
84
  }),
85
  "PROC": datasets.Sequence(
86
+ {datasets.Value("int32"),datasets.Sequence(datasets.Value("int32"))}
87
  ),
88
  "CHART": datasets.Sequence(
89
  {
90
+ "signal" : { datasets.Value("int32"),datasets.Sequence(datasets.Value("int32")) },
91
+ "val" : { datasets.Value("int32"),datasets.Sequence(datasets.Value("int32")) }
92
  }),
93
  "OUT": datasets.Sequence(
94
+ {datasets.Value("int32"),datasets.Sequence(datasets.Value("int32"))}
95
  ),
96
  "label": datasets.ClassLabel(names=["0", "1"]),
97
  }