relabel_class | R Documentation |
Relabel clustering categories to match to a standard by minimizing the Frobenius norm between the two labels.
relabel_class(pred.cl, ref.cl)
pred.cl |
vector of predicted cluster assignments |
ref.cl |
vector of reference labels to match to |
A vector of relabeled cluster assignments
Aline Talhouk
set.seed(2)
pred <- sample(1:4, 100, replace = TRUE)
true <- sample(1:4, 100, replace = TRUE)
relabel_class(pred, true)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.