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)
A structure with the proportion of neighbors having an opposite class with respect to an instance and label
mld mldr
object with the multilabel dataset to preprocess
Vector with the instances of the dataset which have one or more label active (ideally, all of them)
Structure with the neighbors of every instance in the dataset
Number of neighbors taken into account for each instance