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.
checkParamSet(par.set, dict = NULL)
par.set | ParamSet |
---|---|
dict | ( |
TRUE
on success. An exception is raised otherwise.
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"))#> [1] TRUE