A RetroSearch Logo

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

Search Query:

Showing content from https://scikit-learn.org/dev/developers/../modules/generated/sklearn.utils.arrayfuncs.min_pos.html below:

min_pos — scikit-learn 1.8.dev0 documentation

min_pos#
sklearn.utils.arrayfuncs.min_pos(X)#

Find the minimum value of an array over positive values.

Returns the maximum representable value of the input dtype if none of the values are positive.

Parameters:
Xndarray of shape (n,)

Input array.

Returns:
min_valfloat
The smallest positive value in the array, or the maximum representable value

of the input dtype if no positive values are found.

Examples

>>> import numpy as np
>>> from sklearn.utils.arrayfuncs import min_pos
>>> X = np.array([0, -1, 2, 3, -4, 5])
>>> min_pos(X)
2.0

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