MCPcopy
hub / github.com/scikit-learn/scikit-learn / fit

Method fit

sklearn/utils/tests/test_validation.py:933–935  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

931def test_check_is_fitted_with_is_fitted():
932 class Estimator(BaseEstimator):
933 def fit(self, **kwargs):
934 self._is_fitted = True
935 return self
936
937 def __sklearn_is_fitted__(self):
938 return hasattr(self, "_is_fitted") and self._is_fitted

Calls

no outgoing calls

Tested by

no test coverage detected