I have:
array = [1, 2, 3, 4, 5, 6, 7, 8];
I need to find numpy.argmax
only for last 4 elements in array.
This does not works, because index is losted:
>>> array = [1, 2, 3, 4, 5, 6, 7, 8];
>>> print (array[4:8]);
[5, 6, 7, 8]
>>> print (np.argmax(array[4:8]) );
3
The result must be 7