getAllReverseNeighbors {mldr.resampling}R Documentation

Auxiliary function used by MLUL. For each instance in the dataset, given the neighbors structure, we compute its reverse nearest neighbors

Description

Auxiliary function used by MLUL. For each instance in the dataset, given the neighbors structure, we compute its reverse nearest neighbors

Usage

getAllReverseNeighbors(d, neighbors, k)

Arguments

d

Vector with the instances of the dataset which have one or more label active (ideally, all of them)

neighbors

Structure with the neighbors of every instance in the dataset

k

Number of neighbors to be considered

Value

A list of vectors with the indexes of the reverse nearest neighbors of every instance in the dataset


[Package mldr.resampling version 0.2.3 Index]