sklearn.utils.assert_all_finite
-
sklearn.utils.assert_all_finite(X, *, allow_nan=False)
[source] -
Throw a ValueError if X contains NaN or infinity.
- Parameters
-
-
X{ndarray, sparse matrix}
-
allow_nanbool, default=False
-
© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.assert_all_finite.html