Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bafd46d

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

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎sklearn/utils/validation.py

Copy file name to clipboardExpand all lines: sklearn/utils/validation.py
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.