vdm: Auxiliary function used to calculate the Value Difference...

View source: R/utils.R

vdmR Documentation

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)

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

Value

A value for the distance


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