checkParamSet {ParamHelpers} | R Documentation |
Sanity check expressions of a parameter set.
Description
Checks whether the default values of the numerical parameters are located within the corresponding boundaries. In case of discrete parameters it checks whether the values are a subset of the parameter's possible values.
Usage
checkParamSet(par.set, dict = NULL)
Arguments
par.set |
ParamSet |
dict |
( |
Value
TRUE
on success. An exception is raised otherwise.
Examples
ps = makeParamSet(
makeNumericParam("u", lower = expression(p)),
makeIntegerParam("v", lower = 1, upper = expression(3 * p)),
makeDiscreteParam("w", default = expression(z), values = c("a", "b")),
makeDiscreteParam("x", default = "a", values = c("a", "b")),
keys = c("p", "z")
)
checkParamSet(ps, dict = list(p = 3, z = "b"))
[Package ParamHelpers version 1.14.1 Index]