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.
Input array.
of the input dtype if no positive values are found.
>>> 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
© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.utils.arrayfuncs.min_pos.html