Source From Here
Question
I have a 2 dimensional NumPy array. I know how to get the maximum values over axes:
How can I get the indices of the maximum elements? So I would like as output array([1,1,0])
How-To
Using API:numpy.argmax: Returns the indices of the maximum values along an axis.
Question
I have a 2 dimensional NumPy array. I know how to get the maximum values over axes:
How can I get the indices of the maximum elements? So I would like as output array([1,1,0])
How-To
Using API:numpy.argmax: Returns the indices of the maximum values along an axis.
沒有留言:
張貼留言