plot_model: Plot the sampling models used by irace

View source: R/plot_model.R

plot_modelR Documentation

Plot the sampling models used by irace

Description

Display the sampling models from which irace generated parameter values for new configurations during the configurations process.

For categorical parameters a stacked bar plot is created. This plot shows the sampling probabilities of the parameter values for the elite configurations in the iterations of the configuration process.

For numerical parameters a sampling distributions plot of the numerical parameters for the elite configurations of an iteration. This plot shows de density function of the truncated normal distributions associated to each parameter for each elite configuration on each iteration.

Usage

plot_model(irace_results, param_name, filename = NULL)

Arguments

irace_results

The data generated when loading the .Rdata file created by irace (or the filename of that file).

param_name

String, parameter to be included in the plot, e.g., param_name = "algorithm"

filename

(character(1)) File name to save the plot, for example "~/path/example/filename.png".

Value

sampling model plot

Examples

iraceResults <- read_logfile(system.file(package="irace", "exdata",
                                         "irace-acotsp.Rdata", mustWork = TRUE))
plot_model(iraceResults, param_name="algorithm")
 
plot_model(iraceResults, param_name="alpha")


auto-optimization/iraceplot documentation built on Nov. 29, 2024, 9:36 a.m.