This function implements the MLeNN algorithm. It is a preprocessing algorithm for imbalanced multilabel datasets, whose aim is to identify instances with majoritary labels, and remove its neihgbors which are too different to them, in terms of active labels.
MLeNN(D, TH = 0.5, k = 3, neighbors = NULL, tableVDM = NULL)
An mldr object containing the preprocessed multilabel dataset
mld mldr
object with the multilabel dataset to preprocess
threshold for the Hamming Distance in order to consider an instance different to another one. Defaults to 0.5.
number of nearest neighbours to check for each instance. Defaults to 3.
Structure with instances and neighbors. If it is empty, it will be calculated by the function
Dataframe object containing previous calculations for faster processing. If it is empty, the algorithm will be slower