ktl014
7/27/2017 - 10:15 PM

numpy argmin - return minimum of array From https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmin.html

>>> a = np.arange(6).reshape(2,3)
>>> a
array([[0, 1, 2],
       [3, 4, 5]])
>>> np.argmin(a)
0
>>> np.argmin(a, axis=0)
array([0, 0, 0])
>>> np.argmin(a, axis=1)
array([0, 0])