label_to_membership | R Documentation |
Convert label vector to membership matrix
label_to_membership(labels, label.names = NULL)
labels |
a vector of labels from K distint classes |
label.names |
(optional) alternative label names, used for naming columns of membership matrix |
an n-by-K binary membership matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.