turicreate.Sketch.max

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.