MCPcopy Create free account
hub / github.com/modAL-python/modAL / _fit_to_known

Method _fit_to_known

modAL/models/base.py:248–257  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 2

rebagMethod · 0.95
teachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected