R: Create parameter designs for problems and algorithms.
makeDesign
R Documentation
Create parameter designs for problems and algorithms.
Description
Create a parameter design for either a problem or an algorithm that you
can use in addExperiments.
All parameters in design and exhaustive be “primitive”
in the sense that either is.atomic is TRUE or is.factor is TRUE.
Be aware of R's default behaviour of converting strings into factors if you use the design
parameter. See option stringsAsFactors in data.frame to turn this off.
[data.frame]
The design. Must have named columns corresponding to parameters.
Default is an empty data.frame().
exhaustive
[list]
Named list of parameters settings which should be exhaustively tried.
Names must correspond to parameters.
Default is empty list.
Value
[Design].
Examples
## Not run:
# simple design for algorithm "a1" with no parameters:
design = makeDesign("a1")
# design for problem "p1" using predefined parameter combinations
design = makeDesign("p1", design = data.frame(alpha = 0:1, beta = c(0.1, 0.2)))
# creating a list of designs for several algorithms at once, all using the same
# exhaustive grid of parameters
designs = lapply(c("a1", "a2", "a3"), makeDesign,
exhaustive = list(alpha = 0:1, gamma = 1:10/10))
## End(Not run)