turicreate.SArray.argmax

SArray.argmax()

Get the index of the maximum numeric value in SArray.

Returns None on an empty SArray. Raises an exception if called on an SArray with non-numeric type.

Returns:
out : int

Index of the maximum value of SArray

See also

argmin

Examples

>>> turicreate.SArray([14, 62, 83, 72, 77, 96, 5, 25, 69, 66]).argmax()