Is there a way to get max and argmax by one stroke ?
import numpy as np a=[0,0,1,0] maximum=max(a) index=np.argmax(a)
Is there a fastest wa
Maybe something like this is faster...
index = np.argmax(a) max = a[index]