group_TSP {multiclassPairs} | R Documentation |
Internal function: for grouping labels for one-vs-rest usage
Description
Used to convert labels to factor to be used by switchBox package.
Usage
group_TSP(label, my_group)
Arguments
label |
a vector indicating multi classes |
my_group |
character indicate the wanted class |
Value
a factor contains two levels one is the wanted class and the other is "rest" that represent any other class other than the wanted class
Author(s)
Nour-al-dain Marzouka <nour-al-dain.marzouka at med.lu.se>
Examples
L <- sample(x = c("A","B","C","D"), size = 1000, replace = TRUE)
[Package multiclassPairs version 0.4.3 Index]