irace
implements iterated Race. It receives some parameters to be tuned
and returns the best configurations found, namely, the elite configurations
obtained from the last iterations (and sorted by rank).
irace(scenario, parameters)
defaultScenario()
and
readScenario()
. See documentation
of this function for details.readParameters()
.
See documentation of this function for details.parameters
.
iraceResults
. The path of the file is indicated in scenario$logFile
.
The iraceResults
object is a list with the following structure:.ID.
) indicates the internal identifier of the configuration,
the following columns correspond to the parameter values, each column named as the
parameter name specified in the parameter object. The final column (.PARENT.
)
is the identifier of the configuration from which model the actual configuration
was sampled.allConfigurations$.ID.
).allConfigurations$.ID.
).iteration, instance, configuration, time
.
This matrix contains the log of all the experiments that irace performs during its execution.
The instance column refers to the index of the scenario$instancesList
data frame. Time is saved
ONLY when reported by the targetRunner.FALSE
, then no soft restart was performed.experiments
a matrix with the testing expriments of the selected configurations in the
same format as the explained above and seeds
a vector with the seeds used to execute
each experiment.irace
executes the tuning procedure using
the information provided in scenario
and parameters
. Initially it checks
the correctness of scenario
and recovers a previous execution if
scenario$recoveryFile
is set. A R data file log of the execution is created
in scenario$logFile
.
irace.main
a higher-level command-line interface to
irace
.
readScenario
to read the scenario setup from a file.
defaultScenario
to provide a default scenario for irace.
readParameters
to read the target algorithm parameters from a file.## Not run:
# parameters <- readParameters("parameters.txt")
# scenario <- readScenario(filename="scenario.txt",
# scenario=defaultScenario())
# irace(scenario=scenario, parameters=parameters)
# ## End(Not run)
Run the code above in your browser using DataLab