Description Usage Arguments Details Value See Also Examples
Update a model structure or component with new parameters, or update the posterior processes.
1 2 | modelExpandParam(model, params)
modelUpdateProcesses(model, predt=NULL)
|
model |
the model structure to be updated. |
params |
vector of parameters. |
predt |
(optional) a vector of times to infer the posterior at. By default this is 100 points spanning the time range of the data. |
model <- modelExpandParam(model, param)
returns a model structure filled with the parameters in the given
vector. This is used as a helper function to enable parameters to be
optimised in, for example, the optimisation functions.
model <- modelUpdateProcesses(model)
updates posterior processes of the given model.
model |
updated model structure. |
1 2 3 4 5 6 7 8 9 | ## Not run:
# Learn the model
model <- GPLearn(...)
params <- modelExtractParam(model, only.values=TRUE)
params[1] <- 0
new_model <- modelExpandParam(model, params)
new_model <- modelUpdateProcesses(new_model)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.