Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -3
Mimic4Dataset.py
CHANGED
@@ -434,9 +434,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
434 |
description="Dataset for mimic4 Custom Mortality task"
|
435 |
),
|
436 |
]
|
437 |
-
|
438 |
DEFAULT_CONFIG_NAME = "Mortality"
|
439 |
-
|
440 |
def map_dtype(self,dtype):
|
441 |
if pd.api.types.is_integer_dtype(dtype):
|
442 |
return datasets.Value('int64')
|
@@ -802,7 +802,6 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
802 |
|
803 |
#############################################################################################################################
|
804 |
def _info(self):
|
805 |
-
self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out,self.path = self.create_cohort()
|
806 |
|
807 |
if self.encoding == 'onehot' :
|
808 |
X_train_encoded=generate_split(self.path+'/train_data.pkl',self.config.name,True,self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out)
|
|
|
434 |
description="Dataset for mimic4 Custom Mortality task"
|
435 |
),
|
436 |
]
|
437 |
+
|
438 |
DEFAULT_CONFIG_NAME = "Mortality"
|
439 |
+
self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out,self.path = self.create_cohort()
|
440 |
def map_dtype(self,dtype):
|
441 |
if pd.api.types.is_integer_dtype(dtype):
|
442 |
return datasets.Value('int64')
|
|
|
802 |
|
803 |
#############################################################################################################################
|
804 |
def _info(self):
|
|
|
805 |
|
806 |
if self.encoding == 'onehot' :
|
807 |
X_train_encoded=generate_split(self.path+'/train_data.pkl',self.config.name,True,self.feat_cond, self.feat_chart, self.feat_proc, self.feat_meds, self.feat_out)
|