R/OverUnderSampling.R
oversample.RdOversampling: For a given class (usually the smaller one) all existing observations are taken and copied and extra observations are added by randomly sampling with replacement from this class.
Undersampling: For a given class (usually the larger one) the number of observations is reduced (downsampled) by randomly sampling without replacement from this class.
oversample(task, rate, cl = NULL) undersample(task, rate, cl = NULL)
| task | (Task) |
|---|---|
| rate | ( |
| cl | ( |
Task.
Other imbalancy:
makeOverBaggingWrapper(),
makeUndersampleWrapper(),
smote()