Learn R Programming

mldr.resampling (version 0.2.3)

getW: 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)

Value

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

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