Learn R Programming

mldr.resampling (version 0.2.3)

vdm: Auxiliary function used to calculate the Value Difference Metric (VDM) between two instances considering their non numeric attributes

Description

Auxiliary function used to calculate the Value Difference Metric (VDM) between two instances considering their non numeric attributes

Usage

vdm(D, sample, y, label, tableVDM = NULL)

Value

A value for the distance

Arguments

D

mld mldr object with the multilabel dataset to preprocess

sample

Index of the first sample

y

Index of the second sample

label

Label that will be considered in calculations

tableVDM

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