Oversampler-class: OverSampler class

OverSamplerR Documentation

OverSampler class

Description

A class for oversampling datasets.

Super class

deepANN::Sampler -> OverSampler

Methods

Public methods

Inherited methods

Method fit_resample()

Oversample the dataset.

Usage
OverSampler$fit_resample(X, y)
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.

Returns

A list with X_resampled and y_resampled.


Method clone()

The objects of this class are cloneable with this method.

Usage
OverSampler$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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