Learn R Programming

mlr (version 2.3)

oversample: Over- or undersample binary classification task to handle class imbalancy.

Description

Oversampling: From the smaller class, observations are randomly drawn with repetitions.

Undersampling: From the larger class, observations are randomly drawn without repetitions.

Usage

oversample(task, rate)

undersample(task, rate)

Arguments

Value

[Task].

See Also

Other imbalancy: makeOverBaggingWrapper; makeOversampleWrapper, makeUndersampleWrapper; smote