turicreate.Sketch.max — Turi Create API 6.4.1 documentation (original) (raw)

Turi Create API


Sketch. max()

Returns the maximum value in the SArray. Returns nan on an empty array. Throws an exception if called on an SArray with non-numeric type.

Returns: out : type of SArray Maximum value of SArray. Returns nan if the SArray is empty.
Raises: RuntimeError Throws an exception if the SArray is a non-numeric type.