Description Usage Arguments Value See Also Examples
groups of parameters of a model to be seen as one parameter during optimisation of the model.
1 | modelTieParam(model, paramsList)
|
model |
the model for which parameters are being tied together. |
paramsList |
indices of parameteres to group together. The indices are provided in a list. Each element in the list contains a vector of indices of parameters that should be considered as one parameter. Each group of parameters in each cell should obviously be mutually exclusive. Alternatively, the specification may consist of strings, which are
interpreted as regular expressions that are matched against the
parameter names returned by |
model |
the model with the parameters grouped together. |
modelExtractParam, modelExpandParam, modelGradient
.
1 2 3 4 5 6 7 8 9 10 11 12 | # Create a multi kernel with two rbf blocks with bounded inverse widths
invWidthBounds <- c(0.5, 2)
kernType <- list(type="multi", comp=list())
for (i in 1:2)
kernType$comp[[i]] <- list(type="parametric", realType="rbf",
options=list(isNormalised=TRUE,
inverseWidthBounds=invWidthBounds))
kern <- kernCreate(1, kernType)
# Tie the inverse with parameters of the component RBF kernels
kern <- modelTieParam(kern, list(tieWidth="inverseWidth"))
kernDisplay(kern)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.