View source: R/evaluation_functions.R
label_onehot | R Documentation |
one-hot code the label vector
label_onehot(labels, K = NULL)
labels |
a vector of labels |
K |
number of different categories, by default is the number of unique labels |
a n-by-K one-hot encoded binary matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.