sampler_Wrapper: Wrapper function for class Oversampler.

oversamplingR Documentation

Wrapper function for class Oversampler.

Description

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.

Usage

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"))

Arguments

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.

k_neighbors

The number of nearest neighbors used to define the neighborhood of samples to use to generate the synthetic samples.

Value

A list with X_resampled and y_resampled.


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.