getW: Auxiliary function used by MLSOL and MLUL. For non outlier...

View source: R/utils.R

getWR Documentation

Auxiliary function used by MLSOL and MLUL. For non outlier instances, it aggregates the values of S for each label

Description

Auxiliary function used by MLSOL and MLUL. For non outlier instances, it aggregates the values of S for each label

Usage

getW(S)

Arguments

S

Structure with the proportion of neighbors having an opposite class with respect to an instance and label, normalized by the global class imbalance

Value

A vector of weights to be considered when oversampling for each instance


mldr.resampling documentation built on Aug. 22, 2023, 5:11 p.m.