**Class: **RegressionGP

Resubstitution loss for a trained Gaussian process regression model

`L = resubLoss(gprMdl)`

L = resubLoss(gprMdl,Name,Value)

returns
the resubstitution mean squared error for the Gaussian process regression
(GPR) model, `L`

= resubLoss(`gprMdl`

)`gprMdl`

.

returns
the resubstitution loss for the GPR model, `L`

= resubLoss(`gprMdl`

,`Name,Value`

)`gprMdl`

,
with additional options specified by one or more `Name,Value`

pair
arguments. For example, you can specify a custom loss function or
the observation weights.

To compute the regression error for new data, use `loss`

.

[1] Harrison, D. and D.L., Rubinfeld. "Hedonic
prices and the demand for clean air." *J. Environ. Economics
& Management*. Vol.5, 1978, pp. 81-102.

[2] Lichman, M. UCI Machine Learning Repository, Irvine, CA: University of California, School of Information and Computer Science, 2013. http://archive.ics.uci.edu/ml.

`fitrgp`

| `loss`

| `RegressionGP`

| `resubPredict`