onehot_encode | R Documentation |
One-hot-encoding of the labels in case of classification
onehot_encode(y)
y |
a numeric vector consisting of the response variable labels. The minimum value of the unique labels should begin from 0 |
library(elmNNRcpp) y = sample(0:3, 100, replace = TRUE) y_expand = onehot_encode(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.