mlpy.auxiliary.array.nunique¶
-
mlpy.auxiliary.array.
nunique
(x, axis=None)[source]¶ Efficiently count the unique elements of x along the given axis.
Parameters: x : array_like
The array for which to count the unique elements.
axis : int
Dimension along which to count the unique elements.
Returns: int or array_like :
The number of unique elements along the given axis.
Examples
>>>