psRace {irace} | R Documentation |
Post-selection race
Description
psRace
performs a post-selection race of a set of configurations.
Usage
psRace(
iraceResults,
max_experiments,
conf_ids = NULL,
iteration_elites = FALSE,
psrace_logFile = NULL
)
Arguments
iraceResults |
|
max_experiments |
|
conf_ids |
IDs of the configurations in |
iteration_elites |
If |
psrace_logFile |
|
Value
The elite configurations after the post-selection. In addition, if iraceResults$scenario$logFile
is defined,
it saves an updated copy of iraceResults
in that file, where iraceResults$psrace_log
is a list with the following elements:
- configurations
Configurations used in the post-selection race.
- instances
Data frame with the instances used in the post-selection race. First column has the instances IDs from
iraceResults$scenario$instances
, second column the seed assigned to the instance.- max_experiments
Configuration budget assigned to the post-selection race.
- experiments
Matrix of results generated by the post-selection race, in the same format as the matrix
iraceResults$experiments
. Column names are the configuration IDs and row names are the instance IDs.- elites
Best configurations found in the experiments.
Author(s)
Leslie Pérez Cáceres and Manuel López-Ibáñez
Examples
irace_log <- read_logfile(system.file(package="irace", "exdata", "sann.rda"))
# Use a temporary file to not change the original "sann.rda".
psrace_logFile <- withr::local_tempfile(fileext = ".Rdata")
# Execute the post-selection after the execution of irace. Use 10% of the total budget.
psRace(irace_log, max_experiments=0.1, psrace_logFile = psrace_logFile)
# Print psrace_log
irace_log <- read_logfile(psrace_logFile)
str(irace_log$psrace_log)