8000 DOC whats new and scope info in docstring. · scikit-learn/scikit-learn@129d261 · GitHub
[go: up one dir, main page]

Skip to content

Commit 129d261

Browse files
committed
DOC whats new and scope info in docstring.
1 parent 3122da3 commit 129d261

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/whats_new/v0.22.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ Changelog
2828
- |Fix| :func:`utils.check_array` now correctly converts pandas DataFrame with
2929
boolean columns to floats. :pr:`15797` by `Thomas Fan`_.
3030

31+
- |Fix| :func:`utils.check_is_fifted` accepts back an explicit ``attributes``
32+
argument to check for specific attributes as explicit markers of a fitted
33+
estimator. When no explicit attributes are provided, only the attributes
34+
ending with a single "_" are used as "fitted" markers. This change is made to
35+
restore some backward compatibility with the behavior of this utility in
36+
version 0.21. :pr:`15947` by `Thomas Fan`_.
37+
3138
:mod:`sklearn.inspection`
3239
.........................
3340

sklearn/utils/validation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,9 @@ def check_is_fitted(estimator, attributes=None, msg=None):
857857
fitted attributes (ending with a trailing underscore) and otherwise
858858
raises a NotFittedError with the given message.
859859
860+
This utility is meant to be used internally by estimators them-selves,
861+
typically in their own predict / transform methods.
862+
860863
Parameters
861864
----------
862865
estimator : estimator instance.

0 commit comments

Comments
 (0)
0