Learn R Programming

mldr.resampling (version 0.2.3)

newSample: Auxiliary function used by MLSMOTE. Creates a synthetic sample based on values of attributes and labels of its neighbors

Description

Auxiliary function used by MLSMOTE. Creates a synthetic sample based on values of attributes and labels of its neighbors

Usage

newSample(seedInstance, refNeigh, neighbors, strategy, D)

Value

A synthetic sample derived from the one passed as a parameter and its neighbors

Arguments

seedInstance

Sample we are using as "template"

refNeigh

Reference neighbor

neighbors

Neighbors to take into account

strategy

Strategy for choosing the synthetic labels: union, intersection or ranking

D

mld mldr object with the multilabel dataset to preprocess