getAllNeighbors2 {mldr.resampling} | R Documentation |
Auxiliary function used by MLeNN and MLTL. Gets the kNN of every instance in a dataset, when compared to some of the rest
getAllNeighbors2(neighbors, d, k)
neighbors |
Structure with all the neighbors in the dataset, regardless of which ones to be compared |
d |
Vector with the instances of the dataset which are going to be compared |
k |
Number of neighbors to be retrieved |
A list of vectors with the indexes of the neighbors for each instance