Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -2
Mimic4Dataset.py
CHANGED
@@ -220,7 +220,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
220 |
|
221 |
|
222 |
def verif_dim_tensor(self, proc, out, chart, meds, lab):
|
223 |
-
interv = (self.timeW//self.bucket)
|
224 |
verif=True
|
225 |
if self.feat_proc:
|
226 |
if (len(proc)!= interv):
|
@@ -452,7 +452,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
452 |
X= generate_ml(dyn_df,cond_df,demo,concat_cols,self.concat)
|
453 |
X=X.values.tolist()[0]
|
454 |
|
455 |
-
interv = (self.timeW//self.bucket)
|
456 |
size_concat = self.size_cond+ self.size_proc * interv + self.size_meds * interv+ self.size_out * interv+ self.size_chart *interv+ self.size_lab * interv + 4
|
457 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
458 |
|
|
|
220 |
|
221 |
|
222 |
def verif_dim_tensor(self, proc, out, chart, meds, lab):
|
223 |
+
interv = (self.timeW//self.bucket)
|
224 |
verif=True
|
225 |
if self.feat_proc:
|
226 |
if (len(proc)!= interv):
|
|
|
452 |
X= generate_ml(dyn_df,cond_df,demo,concat_cols,self.concat)
|
453 |
X=X.values.tolist()[0]
|
454 |
|
455 |
+
interv = (self.timeW//self.bucket)
|
456 |
size_concat = self.size_cond+ self.size_proc * interv + self.size_meds * interv+ self.size_out * interv+ self.size_chart *interv+ self.size_lab * interv + 4
|
457 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
458 |
|