Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -1
Mimic4Dataset.py
CHANGED
@@ -536,7 +536,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
536 |
|
537 |
data=data.T
|
538 |
train_data, test_data = train_test_split(data, test_size=self.test_size, random_state=42)
|
539 |
-
train_data, val_data = train_test_split(
|
540 |
|
541 |
dict_dir = "./data/dict/"+self.config.name.replace(" ","_")
|
542 |
train_dic = train_data.to_dict('index')
|
|
|
536 |
|
537 |
data=data.T
|
538 |
train_data, test_data = train_test_split(data, test_size=self.test_size, random_state=42)
|
539 |
+
train_data, val_data = train_test_split(train_data, test_size=self.val_size, random_state=42)
|
540 |
|
541 |
dict_dir = "./data/dict/"+self.config.name.replace(" ","_")
|
542 |
train_dic = train_data.to_dict('index')
|