getC {mldr.resampling} | R Documentation |
Auxiliary function used by MLSOL and MLUL. For each instance in the dataset, we compute, for each label, the proportion of neighbors having an opposite class with respect to the proper instance
Description
Auxiliary function used by MLSOL and MLUL. For each instance in the dataset, we compute, for each label, the proportion of neighbors having an opposite class with respect to the proper instance
Usage
getC(D, d, neighbors, k)
Arguments
D |
mld |
d |
Vector with the instances of the dataset which have one or more label active (ideally, all of them) |
neighbors |
Structure with the neighbors of every instance in the dataset |
k |
Number of neighbors taken into account for each instance |
Value
A structure with the proportion of neighbors having an opposite class with respect to an instance and label
[Package mldr.resampling version 0.2.3 Index]