getAllNeighbors2: Auxiliary function used by MLeNN and MLTL. Gets the kNN of...

View source: R/utils.R

getAllNeighbors2R 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


mldr.resampling documentation built on Aug. 22, 2023, 5:11 p.m.