scatter_performance {iraceplot} | R Documentation |
Performance Scatter Plot of Two Configurations
Description
Create a scatter plot that displays the performance of two configurations on a provided experiment matrix. Each point in the plot represents an instance and the color of the points indicates if one configuration is better than the other.
Usage
scatter_performance(
experiments,
x_id,
y_id,
rpd = TRUE,
filename = NULL,
interactive = base::interactive(),
instance_names = NULL
)
scatter_training(irace_results, ...)
scatter_test(irace_results, ...)
Arguments
experiments |
Experiment matrix obtained from irace training or testing data. Configurations in columns and instances in rows. As in irace, column names (configurations ids) should be characters. Row names will be used as instance names. |
x_id , y_id |
Configuration IDs for x-axis and y-axis, respectively. |
rpd |
( |
filename |
( |
interactive |
( |
instance_names |
Either a character vector of instance names in the
same order as |
irace_results |
The data generated when loading the |
... |
Other arguments passed to |
Details
The performance matrix is assumed to be provided in the format of the irace experiment matrix thus, NA values are allowed. Consequently the number of evaluations can differ between configurations due to the elimination process applied by irace. This plot only shows performance data only for instances in which both configurations are executed.
scatter_training()
compares the performance of two configurations on the
training instances. The performance data is obtained from the evaluations
performed by irace during the execution process.
scatter_test()
compares the performance of two configurations on the test
instances. The performance data is obtained from the test evaluations
performed by irace. Note that testing is not enabled by default in irace
and should be enabled in the scenario setup. Moreover, configuration ids
provided in x_id
and y_id
should belong to elite configuration set
evaluated in the test (see the irace package user guide for more details).
Value
ggplot2::ggplot()
object
Examples
iraceResults <- read_logfile(system.file(package="irace", "exdata",
"irace-acotsp.Rdata", mustWork = TRUE))
best_id <- iraceResults$iterationElites[length(iraceResults$iterationElites)]
scatter_performance(iraceResults$experiments, x_id = 1, y_id = best_id)
iraceResults <- read_logfile(system.file(package="iraceplot", "exdata",
"guide-example.Rdata", mustWork = TRUE))
scatter_training(iraceResults, x_id = 806, y_id = 809)
scatter_training(iraceResults, x_id = 806, y_id = 809, rpd = FALSE)
iraceResults <- read_logfile(system.file(package="iraceplot", "exdata",
"guide-example.Rdata", mustWork = TRUE))
scatter_test(iraceResults, x_id = 92, y_id = 119)
scatter_test(iraceResults, x_id = 92, y_id = 119, rpd=FALSE)