I am using a lot of argmin and argmax in Python.
Unfortunately, the function is very slow.
I have done some searching around, and the best I can find is here
Can you post some code? Here is the result on my pc:
x = np.random.rand(10000) %timeit np.max(x) %timeit np.argmax(x)
output:
100000 loops, best of 3: 7.43 µs per loop 100000 loops, best of 3: 11.5 µs per loop