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

View source: R/functions.R

group_TSPR 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)


NourMarzouka/multiclassPairs documentation built on May 3, 2023, 7:20 p.m.