Skip to content

Commit c84843f

Browse files
committed
not giving ensemble and load_path results in no bagging or boosting
1 parent 8ea723c commit c84843f

File tree

1 file changed

+4
-3
lines changed
  • chebai/preprocessing/datasets

1 file changed

+4
-3
lines changed

chebai/preprocessing/datasets/base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,8 @@ class _DynamicDataset(XYBaseDataModule, ABC):
723723

724724
def __init__(
725725
self,
726-
ensemble: bool,
727-
load_path: str,
726+
ensemble=True,
727+
load_path=None,
728728
**kwargs,
729729
):
730730
super(_DynamicDataset, self).__init__(**kwargs)
@@ -1189,8 +1189,9 @@ def load_processed_data(
11891189
if self.loader.ensemble:
11901190

11911191
data = self.loader.add_val_weights(data)
1192+
if self.loader.load_path is not None:
11921193

1193-
data = self.loader.add_duplicates(data,self.loader.load_path)
1194+
data = self.loader.add_duplicates(data,self.loader.load_path)
11941195

11951196
else:
11961197
data = self.loader.add_train_weights(data,self.loader.load_path)

0 commit comments

Comments
 (0)