oversampling | R Documentation |
Wrapper function for class Oversampler.
Wrapper function for class RandomOversampler.
Wrapper function for class SMOTE.
Wrapper function for class UnderSampler.
Wrapper function for class RandomUnderSampler.
oversampling(X, y, mode = c("auto"))
random_oversampling(X, y, mode = c("auto"))
smote(X, y, mode = c("auto"), k_neighbors = 3L)
undersampling(X, y, mode = c("auto"))
random_undersampling(X, y, mode = c("auto"))
X |
Feature data set, usually a |
y |
Target data set, usually a column of a |
k_neighbors |
The number of nearest neighbors used to define the neighborhood of samples to use to generate the synthetic samples. |
A list with X_resampled
and y_resampled
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.