initTypes {mldr.resampling}R Documentation

Auxiliary function used by MLSOL. Categorizes each pair instance-label of the dataset with a type

Description

Auxiliary function used by MLSOL. Categorizes each pair instance-label of the dataset with a type

Usage

initTypes(C, neighbors, k, minoritary, D, d)

Arguments

C

List of vectors with one value for each pair instance-label

neighbors

Structure with the k nearest neighbors of each instance of the dataset

k

Number of neighbors to be considered for each instance

minoritary

Vector with the minoritary value of each label (normally, 1)

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)

Value

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


[Package mldr.resampling version 0.2.3 Index]