W3cubDocs

/scikit-learn

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 : array or sparse matrix
allow_nan : bool

© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.assert_all_finite.html