fit is for a model that marginalizes the latent
computes the analytic conditional posterior
distributions of each model component, their sum, and the conditional
predictive distribution. All these are computed for
each (hyper)parameter draw (defined by
draws), or other parameter
set (obtained by a reduction defined by
reduce). Results are stored
in a GaussianPrediction object which is then returned.
fit is for a model that samples the latent
TRUE), this will
extract these function samples, compute their sum, and a version of the
f that is transformed through the inverse link function.
x is not
NULL, the function draws are extrapolated
to the points specified by
x using kernel regression.
Results are stored in a Prediction
object which is then returned.
pred( fit, x = NULL, reduce = function(x) base::mean(x), draws = NULL, verbose = TRUE, STREAM = get_stream(), c_hat_pred = NULL, force = FALSE, debug_kc = FALSE )
An object of class lgpfit.
A data frame of points where function posterior distributions
and predictions should be computed or sampled.
Reduction for parameters draws. Can be a function that
is applied to reduce all parameter draws into one parameter set, or
Indices of parameter draws to use, or
Should more information and a possible progress bar be printed?
External pointer. By default obtained with
This is only used if the latent signal
This is by default
If this is