Skip to content

Commit bafd46d

Browse files
DOC add link to sklearn_is_fitted example in check_is_fitted (scikit-learn#26926)
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
1 parent 5868761 commit bafd46d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sklearn/utils/validation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,8 +1410,10 @@ def check_is_fitted(estimator, attributes=None, *, msg=None, all_or_any=all):
14101410
raises a NotFittedError with the given message.
14111411
14121412
If an estimator does not set any attributes with a trailing underscore, it
1413-
can define a ``__sklearn_is_fitted__`` method returning a boolean to specify if the
1414-
estimator is fitted or not.
1413+
can define a ``__sklearn_is_fitted__`` method returning a boolean to
1414+
specify if the estimator is fitted or not. See
1415+
:ref:`sphx_glr_auto_examples_developing_estimators_sklearn_is_fitted.py`
1416+
for an example on how to use the API.
14151417
14161418
Parameters
14171419
----------

0 commit comments

Comments
 (0)