getS {mldr.resampling} | R 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
getS(D, d, C, minoritary)
D |
mld |
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) |
A structure with the proportion of neighbors having an opposite class with respect to an instance and label, normalized by the global class imbalance