rus: Random under-sampling function

View source: R/rusboost.R

rusR Documentation

Random under-sampling function

Description

Function to create temporary training dataset using distribution implied by w.

Usage

rus(y_train, ir = 1)

Arguments

y_train

df on the target variable.

ir

Imbalance ratio. Specifies how many times the under-sampled majority instances are over minority instances.

Details

Following MATLAB, function samples observations of the minority class with replacement and observations of the majority class without replacement.

Value

vector


farr documentation built on May 29, 2024, 6:41 a.m.

Related to rus in farr...