sampling_frequency_iteration: Frequency and Density plot based on its iteration

View source: R/sampling_frequency_iteration.R

sampling_frequency_iterationR Documentation

Frequency and Density plot based on its iteration

Description

The function will return a frequency plot used for categorical data (its values are string, show a bar plot) or numeric data (show a histogram and density plot) by each iteration

Usage

sampling_frequency_iteration(
  irace_results,
  param_name,
  numerical_type = "both",
  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, name of the parameter to be included (example: param_name = "algorithm")

numerical_type

String, (default "both") Indicates the type of plot to be displayed for numerical parameters. "density" shows a density plot, "frequency" shows a frequency plot and "both" show both frequency and density.

filename

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

Value

Frequency and/or density plot

Examples

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


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