Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -1
Mimic4Dataset.py
CHANGED
@@ -450,7 +450,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
450 |
size_concat = self.size_cond+ self.size_proc * ((self.timeW + self.predW)//self.bucket) + self.size_meds * ((self.timeW + self.predW)//self.bucket)+ self.size_out * ((self.timeW + self.predW)//self.bucket)+ self.size_chart * ((self.timeW + self.predW)//self.bucket)+ self.size_lab * ((self.timeW + self.predW)//self.bucket) + 4
|
451 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
452 |
|
453 |
-
if (len(X)==size_concat or len(X)==size_aggreg):
|
454 |
yield int(i), {
|
455 |
"label": label,
|
456 |
"features": X,
|
|
|
450 |
size_concat = self.size_cond+ self.size_proc * ((self.timeW + self.predW)//self.bucket) + self.size_meds * ((self.timeW + self.predW)//self.bucket)+ self.size_out * ((self.timeW + self.predW)//self.bucket)+ self.size_chart * ((self.timeW + self.predW)//self.bucket)+ self.size_lab * ((self.timeW + self.predW)//self.bucket) + 4
|
451 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
452 |
|
453 |
+
if ((self.concat and len(X)==size_concat) or ((not self.concat) and len(X)==size_aggreg)):
|
454 |
yield int(i), {
|
455 |
"label": label,
|
456 |
"features": X,
|