FUNCTION REFERENCE

fitrgp

Fit exact Gaussian process regression by maximizing the profiled marginal likelihood.

Fit exact Gaussian process regression by maximizing the profiled marginal likelihood.

Syntax

mdl = fitrgp(X,Y)

Syntax

mdl = fitrgp(tbl,'response~a+b'); mdl = fitrgp(tbl,'ResponseVarName')

Syntax

mdl = fitrgp(X,Y,'Basis','constant','KernelFunction','squaredexponential','FitMethod','exact','Sigma',0.2)

Basis (also BasisFunction) accepts constant, none and linear. Kernels are squaredexponential, exponential, matern32, matern52 and rationalquadratic. KernelInformation exposes learned positive parameters. Beta is the generalized least-squares basis coefficient vector; Sigma is learned noise deviation and LogLikelihood is the fitted exact log likelihood. Initial length scale is mean(std(X)), initial signal and noise deviations are std(Y)/sqrt(2), and the rational-quadratic shape starts at 1. KernelParameters may override the kernel initial values. SigmaLowerBound is fixed at max(0.01*std(Y),1e-12).

Example

m=fitrgp([0;1;2;3;4;5],[0;0.8;1;0.2;-0.7;-1]); [p,sd,ci]=predict(m,[0.5;2.5])

Differences from MATLAB: only exact numeric GP models, up to 512 rows and a bounded likelihood work budget. Deterministic BFGS uses analytic gradients and Cholesky solves. Prediction sd includes observation noise and basis uncertainty; ci contains 95 percent normal prediction bounds. Extreme or unidentifiable parameters can vary across optimizers.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.