balance_module: Class Balancing Module

Description Usage Arguments Examples

View source: R/balance_module.R

Description

This module allows for the balancing of an unbalanced dataset through either SMOTE or ADASYN.

Usage

1
balance_module(CBRMSR, method = c("smote", "ADASYN"), ratio = 0.8)

Arguments

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

Examples

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)

bhioswego/CBRMSR documentation built on Dec. 6, 2020, 3:16 p.m.