getNN {mldr.resampling}R Documentation

Auxiliary function used to compute the neighbors of an instance

Description

Auxiliary function used to compute the neighbors of an instance

Usage

getNN(sample, rest, label, D, tableVDM = NULL)

Arguments

sample

Index of the sample whose neighbors we want to know

rest

Indexes of the samples among which we will search

label

Label that must be active, in order to calculate the distances

D

mld mldr object with the multilabel dataset to preprocess

tableVDM

Dataframe object containing previous calculations for faster processing. If it is empty, the algorithm will be slower

Value

A vector with the indexes inside rest of the neighbors


[Package mldr.resampling version 0.2.3 Index]