Description Usage Arguments Value Examples
Identify minority class and compute ratio between the number of observations in the majority and the minority classes of a binary TaskClassif .
1  | get_oversamp_ratio(in_task)
 | 
in_task | 
 binary TaskClassif  | 
named list with following items:
class
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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.