makeParamSet | R Documentation |
makeParamSet
: Construct from a bunch of parameters.
Multiple sets can be concatenated with c
.
The constructed S3 class is simply a list that contains the element pars
.
pars
is a list of the passed parameters, named by their ids.
If keys
are provided it will automatically be checked whether all
expressions within the provided parameters only contain arguments that are a
subset of keys.
makeParamSet(..., params = NULL, forbidden = NULL, keys = NULL) makeNumericParamSet(id = "x", len, lower = -Inf, upper = Inf, vector = TRUE)
... |
( |
params |
(list of |
forbidden |
( |
keys |
character |
id |
( |
len |
( |
lower |
( |
upper |
numeric |
vector |
( |
ParamSet()
| LearnerParamSet
.
If all parameters of the ParamSet
are learner parameters, the output
will inherit the class LearnerParamSet
.
makeParamSet( makeNumericParam("u", lower = 1), makeIntegerParam("v", lower = 1, upper = 2), makeDiscreteParam("w", values = 1:2), makeLogicalParam("x"), makeDiscreteVectorParam("y", len = 2, values = c("a", "b")) ) makeParamSet( makeNumericParam("u", lower = expression(ceiling(n))), makeIntegerParam("v", lower = expression(floor(n)), upper = 2), keys = c("p", "n") ) makeParamSet( makeNumericParam("min", lower = 0, upper = 0.8), makeNumericParam("max", lower = 0.2, upper = 1), forbidden = expression(min > max) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.