pred.GP(XX, Zt, prior, Y = NULL, quants = FALSE, Sigma = FALSE,
sub = 1:Zt$t)
pred.CGP(XX, Zt, prior, mcreps = 100, cs = NULL)
pred.ConstGP(XX, Zt, prior, quants = TRUE)
matrix
or data.frame
containing (a design of)
predictive locations where ncol(XX) = ncol(X)
, on which the
data were trained and particle Zt
thus obtainedlogical
indicating
if predictive quantiles should be
are desiredlogical
indicating if the full predictive
variance-covariance matrix is desired; typically only used internally
by CGP and ConstGPY
variables at the XX
locationsdata.frame
is returned with the desired
predictive; these rows are automatically combined when used with
papply
pred.GP
the predictive mean (and quantiles if quants
= TRUE
is provided. For pred.CGP
the predictive
distribution over the class labels is provided, unless only one
class (cs
) is desired. pred.ConstGP
is a combination
of the pred.GP
and pred.CGP
methods
It is suggested that this function is used in as an argument to
papply
to obtain many predictions - one for each
particle in a cloud - which are combined into a
data.frame
Some of the function arguments aren't meant to
be specified by the user, but are rather there to facilitate usage as a
subroutine inside other PL
functions, such as
lpredprob.GP
and others Gramacy, R. and Lee, H. (2010).
papply
, PL
, lpredprob.GP
## See the demos via demo(package="plgp") and the examples
## section of ?plgp
Run the code above in your browser using DataLab