getAllNeighbors: Auxiliary function used by MLSOL and MLUL. Computes the kNN...

View source: R/utils.R

getAllNeighborsR Documentation

Auxiliary function used by MLSOL and MLUL. Computes the kNN of every instance in a dataset

Description

Auxiliary function used by MLSOL and MLUL. Computes the kNN of every instance in a dataset

Usage

getAllNeighbors(D, d, tableVDM = NULL)

Arguments

D

mld mldr object with the multilabel dataset to preprocess

d

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

tableVDM

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

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.