Description Usage Arguments Details Value Author(s)
View source: R/F_smote_oversampling.R
Performs oversampling by creating new instances.
1 2 3 4 5 6 7 8 9 10 |
Variables |
the data.frame of independent variables that should be used to create new instances |
Classes |
the class labels in the prediction problem |
subset_use |
a specific subset only is used for the oversampling. If NULL, everything is used. |
k |
the number of neigbours for generation |
use_nearest |
should only the nearest neighbours be used? (very slow) |
proportions |
to which proportion (of the biggest class) should the classes be equalized |
equalise_with_undersampling |
should additional undersampling be performed? |
safe |
should a safe version of SMOTE be used? |
SMOTE is used to generate synthetic datapoints of a smaller class, for example to overcome the problem of imbalanced classes in classification.
a list containing new independent variables data.frame and new class labels
Ilya Kozlovskiy, Konstantin Hopf konstantin.hopf@uni-bamberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.