Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

relabel_class

Relabel classes to a standard


Description

Relabel clustering categories to match to a standard by minimizing the Frobenius norm between the two labels.

Usage

relabel_class(pred.cl, ref.cl)

Arguments

pred.cl

vector of predicted cluster assignments

ref.cl

vector of reference labels to match to

Value

A vector of relabeled cluster assignments

Author(s)

Aline Talhouk

Examples

set.seed(2)
pred <- sample(1:4, 100, replace = TRUE)
true <- sample(1:4, 100, replace = TRUE)
relabel_class(pred, true)

diceR

Diverse Cluster Ensemble in R

v1.0.3
MIT + file LICENSE
Authors
Derek Chiu [aut, cre], Aline Talhouk [aut], Johnson Liu [ctb, com]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.