Description Usage Arguments Examples
View source: R/balance_module.R
This module allows for the balancing of an unbalanced dataset through either SMOTE or ADASYN.
1 | balance_module(CBRMSR, method = c("smote", "ADASYN"), ratio = 0.8)
|
CBRMSR |
A CBRMSR object |
method |
The balancing method. Currently smote, and ADASYN are supported |
ratio |
Number between 0 and 1 that indicates the desired ratio between minority samples and majority samples |
1 2 3 4 5 6 7 | ## Not run:
# Balancing with SMOTE
CBRMSR <- balance_module(CBRMSR, method = "smote", ratio = 0.8)
# Balancing with ADASYN
CBRMSR <- balance_module(CBRMSR, method = "ADASYN")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.