| [[,Xfgpm-method | R Documentation |
fgpm model in a Xfgpm objectRefit a fgpm model as described in a Xfgpm object.
## S4 method for signature 'Xfgpm'
x[[i]]
x |
A |
i |
An integer giving the index of the model to refit. The
models are in decreasing fit quality as assessed by the
Leave-One-Out |
While the syntax may suggest that the function
extracts a fitted fgpm model, this not true. The
fgpm model is refitted using the call that was used
when this model was assessed. The refitted fgpm model
keeps the same structural parameters as the one assessed
(active variables, kernel, ...), but since the optimization
uses random initial values, the optimized hyper-parameters may
differ from those of the corresponding fgpm in the
Xfgpm object x. As a result, the model can be
different and show a different LOO performance.
The slot @model returns the best fgpm as
assessed in a Xfgm model x. So this model can be
expected to be close to the same as x[[1]]. Yet due to
the refit, the two models x@model and x[[1]] can
differ, see the explanations in the Caution section.
The modelDef function to extract the
definition of a fgpm model e.g., to evaluate it using new
data sIn, fIn and sOut.
## see `?xm` to see how to recreate the pre-caclulated `Xfgpm` object `xm`.
xm[[2]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.