RandomUndersampler-class: RadomUnderSampler class

RandomUnderSamplerR Documentation

RadomUnderSampler class

Description

A class for random undersampling datasets.

Super class

deepANN::Sampler -> RandomUnderSampler

Methods

Public methods

Inherited methods

Method fit_resample()

Random undersample the dataset.

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

Whether to make a deep clone.


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