turicreate.Sketch.frequency_count

Sketch.frequency_count(element)

Returns a sketched estimate of the number of occurrences of a given element. This estimate is based on the count sketch. The element type must be of the same type as the input SArray. Throws an exception if element is of the incorrect type.

Parameters:
element : val

An element of the same type as the SArray.

Returns:
out : int

An estimate of the number of occurrences of the element.

Raises:
RuntimeError

Throws an exception if element is of the incorrect type.