View source: R/sampling_frequency.R
sampling_frequency | R Documentation |
Frequency or density plot that depicts the sampling performed by irace across the iterations of the configuration process. For categorical parameters a frequency plot is created, while for numerical parameters a histogram and density plots are created. The plots are shown in groups of maximum 9, the parameters included in the plot can be specified by setting the param_names argument.
sampling_frequency(
configurations,
parameters,
param_names = NULL,
n = NULL,
filename = NULL
)
configurations |
( |
parameters |
( |
param_names |
( |
n |
Numeric, for scenarios with large parameter sets, it selects a subset
of 9 parameters. For example, |
filename |
( |
Frequency and/or density plot
If there are more than 9 parameters, a pdf file extension is
recommended as it allows to create a multi-page document. Otherwise, you
can use the n
argument of the function to generate the plot of a subset
of the parameters.
# Either use iraceResults
iraceResults <- read_logfile(system.file(package="iraceplot", "exdata",
"guide-example.Rdata", mustWork = TRUE))
sampling_frequency(iraceResults)
sampling_frequency(iraceResults, n = 2)
sampling_frequency(iraceResults, param_names = c("alpha"))
sampling_frequency(iraceResults, param_names = c("algorithm", "alpha", "rho", "q0", "rasrank"))
# Or explicitly specify the configurations and parameters.
parameters <- iraceResults$scenario$parameters
sampling_frequency(iraceResults$allConfigurations, parameters)
sampling_frequency(iraceResults$allConfigurations, parameters, n = 2)
sampling_frequency(iraceResults$allConfigurations, parameters,
param_names = c("alpha"))
sampling_frequency(iraceResults$allConfigurations, parameters,
param_names = c("algorithm", "alpha", "rho", "q0", "rasrank"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.