oversample_smote {scutr} | R Documentation |
Oversample a dataset by SMOTE.
Description
Oversample a dataset by SMOTE.
Usage
oversample_smote(data, cls, cls_col, m, k = NA)
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. |
k |
Number of neighbors used in |
Value
The oversampled dataset.
Examples
table(iris$Species)
smoted <- oversample_smote(iris, "setosa", "Species", 100)
nrow(smoted)
[Package scutr version 0.2.0 Index]