View source: R/OverUnderSampling.R
oversample | R Documentation |
Oversampling: 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.