powered by
A function for one-hot encoding categorical respose vectors.
lol.utils.ohe(Y)
[n] a vector of the categorical resposes, with K unique categories.
K
a list containing the following:
[n, K] the one-hot encoded Y respose variable.
[K] a vector of the y names corresponding to each response column.