turicreate.SArray.argmax — Turi Create API 6.4.1 documentation (original) (raw)

Turi Create API


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

Examples

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