Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -1
Mimic4Dataset.py
CHANGED
@@ -428,7 +428,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
428 |
X=X.values.tolist()[0]
|
429 |
size_concat = self.size_cond+ self.size_proc * (self.timeW//self.bucket) + self.size_meds* (self.timeW//self.bucket)+ self.size_out* (self.timeW//self.bucket)+ self.size_chart* (self.timeW//self.bucket)+ self.size_lab* (self.timeW//self.bucket) + 4
|
430 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
431 |
-
|
432 |
if (len(X)==size_concat or len(X)==size_aggreg):
|
433 |
yield int(i), {
|
434 |
"label": label,
|
|
|
428 |
X=X.values.tolist()[0]
|
429 |
size_concat = self.size_cond+ self.size_proc * (self.timeW//self.bucket) + self.size_meds* (self.timeW//self.bucket)+ self.size_out* (self.timeW//self.bucket)+ self.size_chart* (self.timeW//self.bucket)+ self.size_lab* (self.timeW//self.bucket) + 4
|
430 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
431 |
+
print(len(X),size_concat,size_aggreg)
|
432 |
if (len(X)==size_concat or len(X)==size_aggreg):
|
433 |
yield int(i), {
|
434 |
"label": label,
|