get_oversamp_ratio: Get oversample ratio

Description Usage Arguments Value Examples

Description

Identify minority class and compute ratio between the number of observations in the majority and the minority classes of a binary TaskClassif .

Usage

1

Arguments

in_task

binary TaskClassif

Value

named list with following items:

minoclass
ratio

class

Examples

1
2
3
4
5
6
## Not run: 
in_dt <- data.table(intermittent=c(rep(0, 300), rep(1, 300)))
task = mlr3::TaskClassif$new(id = "in_dt", backend = in_dt, target ='intermittent')
get_oversamp_ratio(task)

## End(Not run)

NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.