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

Method rebag

modAL/models/base.py:333–342  ·  view source on GitHub ↗

Refits every learner with a dataset bootstrapped from its training instances. Contrary to .bag(), it bootstraps the training data for each learner based on its own examples. Todo: Where is .bag()? Args: **fit_kwargs: Keyword arguments to be pa

(self, **fit_kwargs)

Source from the content-addressed store, hash-verified

331 return query_result, retrieve_rows(X_pool, query_result)
332
333 def rebag(self, **fit_kwargs) -> None:
334 """
335 Refits every learner with a dataset bootstrapped from its training instances. Contrary to .bag(), it bootstraps
336 the training data for each learner based on its own examples.
337 Todo:
338 Where is .bag()?
339 Args:
340 **fit_kwargs: Keyword arguments to be passed to the fit method of the predictor.
341 """
342 self._fit_to_known(bootstrap=True, **fit_kwargs)
343
344 def teach(self, X: modALinput, y: modALinput, bootstrap: bool = False, only_new: bool = False, **fit_kwargs) -> None:
345 """

Callers 2

bagging.pyFile · 0.80
bagging.pyFile · 0.80

Calls 1

_fit_to_knownMethod · 0.95

Tested by

no test coverage detected