sklearn.utils.safe_sqr
-
sklearn.utils.safe_sqr(X, *, copy=True)[source] -
Element wise squaring of array-likes and sparse matrices.
- Parameters
-
-
X{array-like, ndarray, sparse matrix} -
copybool, default=True -
Whether to create a copy of X and operate on it or to perform inplace computation (default behaviour).
-
- Returns
-
-
X ** 2element wise square
-
© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.safe_sqr.html