RandomOverSampler | R Documentation |
A class for random oversampling datasets.
deepANN::Sampler
-> RandomOverSampler
fit_resample()
Random oversample the dataset.
RandomOverSampler$fit_resample(X, y)
X
Feature data set, usually a data.frame
or an array
of shape (n_samples, n_features).
y
Target data set, usually a column of a data.frame
or an array
which holds the corresponding label for each sample in X
.
A list with X_resampled
and y_resampled
.
clone()
The objects of this class are cloneable with this method.
RandomOverSampler$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.