| makeDesign | R Documentation |
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.
makeDesign(id, design = data.frame(), exhaustive = list())
id |
[ Id of algorithm or problem. |
design |
[ |
exhaustive |
[ |
[Design].
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.