resolve_class_imbalance: Resolve class imbalances using 'UBL' package

Description Usage Arguments

View source: R/ml_data_transformation.R

Description

This function is a wrapper around caret::upSample(), UBL::SmoteClassif(), UBL::GaussNoiseClassif() and UBL::RandUnderClassif().

Usage

1
resolve_class_imbalance(data, labels, type = "Smote", .pert = 0.1)

Arguments

data

a data.frame

labels

character or factor, the labels

type

character, a switch for the type of imbalance, one of legacy_noise, Smote, GaussianNoise, Under, GaussianExtreme

.pert

numeric, perturbation in the Gaussian noise


hrvg/RiverML documentation built on Oct. 12, 2020, 10:40 a.m.