argmax / argmin (np.argmax, np.argmin)
Also written: np.argmax, np.argmin, .argmax, .argmin
NumPy functions that return the position (index) of the largest or smallest value in an array, not the value itself. They are used to pick the best candidate on a grid of parameter values or a model's predicted class from its scores.