Fits all learners to the training data and labels provided to it so far. Args: bootstrap: If True, each estimator is trained on a bootstrapped dataset. Useful when using bagging to build the ensemble. **fit_kwargs: Keyword arguments to be pass
(self, bootstrap: bool = False, **fit_kwargs)
| 246 | learner._add_training_data(X, y) |
| 247 | |
| 248 | def _fit_to_known(self, bootstrap: bool = False, **fit_kwargs) -> None: |
| 249 | """ |
| 250 | Fits all learners to the training data and labels provided to it so far. |
| 251 | Args: |
| 252 | bootstrap: If True, each estimator is trained on a bootstrapped dataset. Useful when |
| 253 | using bagging to build the ensemble. |
| 254 | **fit_kwargs: Keyword arguments to be passed to the fit method of the predictor. |
| 255 | """ |
| 256 | for learner in self.learner_list: |
| 257 | learner._fit_to_known(bootstrap=bootstrap, **fit_kwargs) |
| 258 | |
| 259 | def _fit_on_new(self, X: modALinput, y: modALinput, bootstrap: bool = False, **fit_kwargs) -> None: |
| 260 | """ |