oversample_smote: Oversample a dataset by SMOTE.

Description Usage Arguments Value Examples

View source: R/oversample.R

Description

Oversample a dataset by SMOTE.

Usage

1
oversample_smote(data, cls, cls_col, m)

Arguments

data

Dataset to be oversampled.

cls

Class to be oversampled.

cls_col

Column containing class information.

m

Desired number of samples in the oversampled data.

Value

The oversampled dataset.

Examples

1
2
3
table(iris$Species)
smoted <- oversample_smote(iris, "setosa", "Species", 100)
nrow(smoted)

scutr documentation built on June 24, 2021, 5:07 p.m.