lol.utils.ohe {lolR} | R Documentation |
A function for one-hot encoding categorical respose vectors.
lol.utils.ohe(Y)
Y |
[n] a vector of the categorical resposes, with |
a list containing the following:
Yh |
[n, K] the one-hot encoded Y respose variable. |
ylabs |
[K] a vector of the y names corresponding to each response column. |
Eric Bridgeford