oversample_smote | R Documentation |
Oversample a dataset by SMOTE.
oversample_smote(data, cls, cls_col, m, k = NA)
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 |
The oversampled dataset.
table(iris$Species)
smoted <- oversample_smote(iris, "setosa", "Species", 100)
nrow(smoted)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.