Undersampler-class: UnderSampler class

UnderSamplerR Documentation

UnderSampler class

Description

A class for undersampling datasets.

Super class

deepANN::Sampler -> UnderSampler

Methods

Public methods

Inherited methods

Method fit_resample()

Undersample the dataset.

Usage
UnderSampler$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
UnderSampler$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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