Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -2
Mimic4Dataset.py
CHANGED
@@ -153,7 +153,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
153 |
timeW = config['timeWindow']
|
154 |
self.timeW=int(timeW.split()[1])
|
155 |
self.bucket = config['timebucket']
|
156 |
-
self.
|
157 |
|
158 |
self.data_icu = config['icu_no_icu']=='ICU'
|
159 |
|
@@ -445,7 +445,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
445 |
X= generate_ml(dyn_df,cond_df,demo,concat_cols,self.concat)
|
446 |
X=X.values.tolist()[0]
|
447 |
|
448 |
-
interv = ((self.timeW + self.
|
449 |
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
|
450 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
451 |
|
|
|
153 |
timeW = config['timeWindow']
|
154 |
self.timeW=int(timeW.split()[1])
|
155 |
self.bucket = config['timebucket']
|
156 |
+
self.predW = config['predW']
|
157 |
|
158 |
self.data_icu = config['icu_no_icu']=='ICU'
|
159 |
|
|
|
445 |
X= generate_ml(dyn_df,cond_df,demo,concat_cols,self.concat)
|
446 |
X=X.values.tolist()[0]
|
447 |
|
448 |
+
interv = ((self.timeW + self.predW)//self.bucket) + (self.config.name != 'Mortality')
|
449 |
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
|
450 |
size_aggreg = self.size_cond+ self.size_proc + self.size_meds+ self.size_out+ self.size_chart+ self.size_lab + 4
|
451 |
|