The S3 class is a list which stores these elements:
character(1)
]
character(1)
]
integer(1)
]
numeric
]len
.
numeric
]len
.
list
]
NULL
| function(x)
]
NULL
| expression
]makeNumericParam(id, lower = -Inf, upper = Inf, allow.inf = FALSE, default, trafo = NULL, requires = NULL, tunable = TRUE)
makeNumericVectorParam(id, len, lower = -Inf, upper = Inf, allow.inf = FALSE, cnames = NULL, default, trafo = NULL, requires = NULL, tunable = TRUE)
makeIntegerParam(id, lower = -Inf, upper = Inf, default, trafo = NULL, requires = NULL, tunable = TRUE)
makeIntegerVectorParam(id, len, lower = -Inf, upper = Inf, cnames = NULL, default, trafo = NULL, requires = NULL, tunable = TRUE)
makeLogicalParam(id, default, requires = NULL, tunable = TRUE)
makeLogicalVectorParam(id, len, cnames = NULL, default, requires = NULL, tunable = TRUE)
makeDiscreteParam(id, values, trafo = NULL, default, requires = NULL, tunable = TRUE)
makeDiscreteVectorParam(id, len, values, default, requires = NULL, tunable = TRUE)
makeFunctionParam(id, default = default, requires = NULL)
makeUntypedParam(id, default, requires = NULL, tunable = TRUE)
makeCharacterParam(id, default, requires = NULL)
makeCharacterVectorParam(id, len, cnames = NULL, default, requires = NULL)
character(1)
]
Name of parameter.numeric
]
Lower bounds.
A singe value of length 1 is automatically replicated to len
for vector parameters.
Default is -Inf
.numeric
]
Upper bounds.
A singe value of length 1 is automatically replicated to len
for vector parameters.
Default is Inf
.logical(1)
]
Allow infinite values for numeric and numericvector params to be feasible settings.
Default is FALSE
.NULL
| function(x)
]
Function to transform parameter. It should be applied to the parameter value
before it is, e.g., passed to a corresponding objective function.
Function must accept a parameter value as the first argument and return a transformed one.
Default is NULL
which means no transformation.NULL
| call
| expression
]
States requirements on other parameters' values, so that setting
this parameter only makes sense if its requirements are satisfied (dependent parameter).
Can be an object created either with expression
or quote
,
the former type is auto-converted into the later.
Only really useful if the parameter is included in a ParamSet
.
Note that if your dependent parameter is a logical Boolean you need to verbosely write
requires = quote(a == TRUE)
and not requires = quote(a)
.
Default is NULL
which means no requirements.logical(1)
]
Is this parameter tunable?
Defining a parameter to be not-tunable allows to mark arguments like, e.g., verbose or
other purely technical stuff, and allows them to be excluded from later automatic optimization
procedures that would try to consider all available parameters.
Default is TRUE
(except for untyped
, function
, character
and
characterVector
) which means it is tunable.integer(1)
]
Length of vector parameter.character
]
Component names for vector params (except discrete).
Every function in this package that creates vector values for such a param, will name
that vector with cnames
.vector
| list
]
Possible discrete values. Instead of using a vector of atomic values,
you are also allowed to pass a list of quite complex R objects,
which are used as discrete choices. If you do the latter,
the elements must be uniquely named, so that the names can be used
as internal representations for the choice.Param
].
makeNumericParam("x",lower = -1, upper = 1)
makeNumericVectorParam("x", len = 2)
makeDiscreteParam("y", values = c("a","b"))
makeCharacterParam("z")
Run the code above in your browser using DataLab