resample | R Documentation |
Interface function of the package. It executes one or several algorithms, given as strings, and stores the resulting MLDs in arff files
resample(
D,
algorithms,
P = 25,
k = 3,
TH = 0.5,
strategy = "ranking",
params,
outputDirectory = tempdir()
)
D |
mld |
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 |
Dataframe with times (in seconds) taken in to execute each algorithm
library(mldr)
library(mldr.resampling)
resample(birds, "LPROS", P=25)
resample(birds, c("LPROS", "LPRUS"), P=30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.