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)