categorical

Methods

Method Reference: categorical.uint8

categorical: out = uint8 (C)

Convert categorical array to a int8 array.

out = uint8 (C) returns a uint8 array indexing the categories in C. Categorical elements of undefined category are returned as 0. Note that the returned category indices saturate to intmax ('uint8'), which is 255.

Source Code: categorical