group_TSP: Internal function: for grouping labels for one-vs-rest usage

Description Usage Arguments Value Author(s) Examples

View source: R/functions.R

Description

Used to convert labels to factor to be used by switchBox package.

Usage

1
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

1
L <- sample(x = c("A","B","C","D"), size = 1000, replace = TRUE)

multiclassPairs documentation built on May 17, 2021, 1:06 a.m.