newSample {mldr.resampling}R Documentation

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)

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

Value

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


[Package mldr.resampling version 0.2.3 Index]