sklearn.utils.as_float_array(X, copy=True, force_all_finite=True) [source]
Converts an array-like to an array of floats.
The new dtype will be np.float32 or np.float64, depending on the original type. The function can create a copy or modify the argument depending on the argument copy.
| Parameters: |
|
|---|---|
| Returns: |
|
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.as_float_array.html