executeAlgorithm: Auxiliary function used by resample. It executes an...

View source: R/utils.R

executeAlgorithmR Documentation

Auxiliary function used by resample. It executes an algorithm, given as a string, and stores the resulting MLD in a arff file

Description

Auxiliary function used by resample. It executes an algorithm, given as a string, and stores the resulting MLD in a arff file

Usage

executeAlgorithm(
  D,
  a,
  P,
  k,
  TH,
  strategy,
  outputDirectory,
  neighbors,
  neighbors2,
  tableVDM
)

Arguments

D

mld mldr object with the multilabel dataset to preprocess

a

String with the name of the algorithm to be applied.

P

Percentage in which the original dataset is increased/decreased (if required by the algorithm)

k

Number of neighbors taken into account for each instance (if required by the algorithm)

TH

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

strategy

Strategy for choosing the synthetic labels (if required by the algorithm). Possible values: "union", "intersection" and "ranking" (default)

outputDirectory

Route with the directory where the generated ARFF file will be stored

neighbors

Structure with all instances and neighbors in the dataset, useful in MLSOL and MLUL

neighbors2

Structure with some instances and neighbors in the dataset, useful in MLeNN and MLTL

tableVDM

Dataframe object containing previous calculations for faster processing. If it is empty, the algorithm will be slower

Value

Time (in seconds) taken to execute the algorithm (NULL if no algorithm was executed)


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