Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sklearn/tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"sklearn.utils.sparsefuncs.incr_mean_variance_axis",
"sklearn.utils.sparsefuncs.inplace_swap_row_csc",
"sklearn.utils.sparsefuncs.inplace_swap_row_csr",
"sklearn.utils.validation.check_is_fitted",
]
FUNCTION_DOCSTRING_IGNORE_LIST = set(FUNCTION_DOCSTRING_IGNORE_LIST)

Expand Down
9 changes: 4 additions & 5 deletions sklearn/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ def check_is_fitted(estimator, attributes=None, *, msg=None, all_or_any=all):
Parameters
----------
estimator : estimator instance
estimator instance for which the check is performed.
Estimator instance for which the check is performed.

attributes : str, list or tuple of str, default=None
Attribute name(s) given as string or a list/tuple of strings
Expand All @@ -1317,12 +1317,11 @@ def check_is_fitted(estimator, attributes=None, *, msg=None, all_or_any=all):
all_or_any : callable, {all, any}, default=all
Specify whether all or any of the given attributes must exist.

Returns
-------
None

Raises
------
TypeError
If the estimator is a class or not an estimator instance

NotFittedError
If the attributes are not found.
"""
Expand Down