getC | 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
getC(D, d, neighbors, k)
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 |
A structure with the proportion of neighbors having an opposite class with respect to an instance and label
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.