resample {mldr.resampling}R Documentation

Interface function of the package. It executes one or several algorithms, given as strings, and stores the resulting MLDs in arff files

Description

Interface function of the package. It executes one or several algorithms, given as strings, and stores the resulting MLDs in arff files

Usage

resample(
  D,
  algorithms,
  P = 25,
  k = 3,
  TH = 0.5,
  strategy = "ranking",
  params,
  outputDirectory = tempdir()
)

Arguments

D

mld mldr object with the multilabel dataset to preprocess

algorithms

String, or string vector, with the name(s) of the algorithm(s) to be applied.

P

Percentage in which the original dataset is increased/decreased, if required by the algorithm(s). Defaults to 25

k

Number of neighbors taken into account for each instance, if required by the algorithm(s). Defaults to 3

TH

Threshold for the Hamming Distance in order to consider an instance different to another one, if required by the algorithm(s). Defaults to 0.5

strategy

Strategy for choosing the synthetic labels, if required by the algorithm. Defaults to ranking

params

Dataframe with 4 columns: name of the algorithm, P, k and TH, in that order, to execute several algorithms with different values for their parameters

outputDirectory

Route with the directory where generated ARFF files will be stored. Defaults to a temporary directory

Value

Dataframe with times (in seconds) taken in to execute each algorithm

Examples

library(mldr)
library(mldr.resampling)
resample(birds, "LPROS", P=25)
resample(birds, c("LPROS", "LPRUS"), P=30)

[Package mldr.resampling version 0.2.3 Index]