A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scikit-learn.org/stable/developers/../api/../modules/generated/sklearn.utils.safe_sqr.html below:

safe_sqr — scikit-learn 1.7.0 documentation

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

Return the element-wise square of the input.

Examples

>>> from sklearn.utils import safe_sqr
>>> safe_sqr([1, 2, 3])
array([1, 4, 9])

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4