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

View source: R/utils.R

getSR Documentation

Auxiliary function used by MLSOL and MLUL. For non outlier instances, it aggregates the values of C, taking into account the global class imbalance

Description

Auxiliary function used by MLSOL and MLUL. For non outlier instances, it aggregates the values of C, taking into account the global class imbalance

Usage

getS(D, d, C, minoritary)

Arguments

D

mld mldr object with the multilabel dataset to preprocess

d

Vector with the instances of the dataset which have one or more label active (ideally, all of them)

C

Structure with the proportion of neighbors having an opposite class with respect to an instance and label

minoritary

Vector with the minoritary class of each label (normally, 1)

Value

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


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