Skip to content

Commit 9712e80

Browse files
UgoMthomasjpfanglemaitre
authored
DOC Ensures that assert_all_finite passes numpydoc validation (#22470)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
1 parent e86644a commit 9712e80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
"sklearn.utils.sparsefuncs.mean_variance_axis",
173173
"sklearn.utils.sparsefuncs.min_max_axis",
174174
"sklearn.utils.tosequence",
175-
"sklearn.utils.validation.assert_all_finite",
176175
"sklearn.utils.validation.check_is_fitted",
177176
"sklearn.utils.validation.check_memory",
178177
"sklearn.utils.validation.check_random_state",

sklearn/utils/validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ def assert_all_finite(
156156
Parameters
157157
----------
158158
X : {ndarray, sparse matrix}
159+
The input data.
159160
160161
allow_nan : bool, default=False
162+
If True, do not throw error when `X` contains NaN.
161163
162164
estimator_name : str, default=None
163165
The estimator name, used to construct the error message.

0 commit comments

Comments
 (0)