Predict response of Gaussian process regression model
ypred = predict(gprMdl,Xnew)
[ypred,ysd]
= predict(gprMdl,Xnew)
[ypred,ysd,yint]
= predict(gprMdl,Xnew)
[ypred,ysd,yint]
= predict(gprMdl,Xnew,Name,Value)
returns
the predicted responses ypred
= predict(gprMdl
,Xnew
)ypred
for the full or
compact Gaussian process regression (GPR) model, gprMdl
,
and the predictor values in Xnew
.
[
also
returns the estimated standard deviations for the new responses at
the predictor values in ypred
,ysd
]
= predict(gprMdl
,Xnew
)Xnew
from a trained GPR
model.
[
also
returns the 95% prediction intervals, ypred
,ysd
,yint
]
= predict(gprMdl
,Xnew
)yint
, for
the true responses corresponding to each row of Xnew
.
[
also
returns the prediction intervals with additional options specified
by one or more ypred
,ysd
,yint
]
= predict(gprMdl
,Xnew
,Name,Value
)Name,Value
pair arguments. For
example, you can specify the confidence level of the prediction interval.
You can choose the prediction method while training
the GPR model using the PredictMethod
name-value
pair argument in fitrgp
. The
default prediction method is 'exact'
for n ≤
10000, where n is the number of observations in
the training data, and 'bcd'
(block coordinate
descent), otherwise.
Computation of standard deviations, ysd
,
and prediction intervals, yint
, is not supported
when PredictMethod
is 'bcd'
.
If gprMdl
is a CompactRegressionGP
object,
you cannot compute standard deviations, ysd
,
or prediction intervals, yint
, for PredictMethod
equal to 'sr'
or 'fic'
.
To compute ysd
and yint
for PredictMethod
equal to 'sr'
or 'fic'
,
use the full regression (RegressionGP
) object.
You can use resubPredict
to compute the predicted responses
for the trained GPR model at the observations in the training data.
compact
| CompactRegressionGP
| fitrgp
| loss
| RegressionGP
| resubPredict