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
Description
Auxiliary function used by MLeNN and MLTL. Gets the kNN of every instance in a dataset, when compared to some of the rest
Usage
getAllNeighbors2(neighbors, d, k)
Arguments
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 |
Value
A list of vectors with the indexes of the neighbors for each instance
[Package mldr.resampling version 0.2.3 Index]