The one_hot function#
Aliases#
halerium.core.one_hot
halerium.core.math.one_hot
- one_hot(operand, n_categories)#
One-hot, element-wise.
- Parameters:
operand – The input of the operation.
n_categories (int) – The number of categories.
- Returns:
operator – The halerium Operator representing the operation.
- Return type: