How to model noise-free case and to obtain Covarince matrix after performing Gaussian process regression using fitrgp

13 ビュー (過去 30 日間)
Assume that there is a GP model constructed using D = {X, y} with fitrgp function, such that:
gprMdl = fitrgp(data.X, data.Y, 'KernelFunction', 'ardsquaredexponential', 'BasisFunction', 'none', 'verbose', 1, 'FitMethod',exact')
I have several question as follows:
1) In introduction of GPR, it says GPR can be used to model the noise and noise-free cases (two present figures in Gaussian Process Regression Models page of MATLAB). But I didn't find how to model noise-free (deterministic) case with fitrgp function.
2) How can I get the auxiliary terms (such as covarince matrix C=K(X,X), and its inverse) that are already used when training GPR? I know we can calculate them by ourselves, but if matlab can produce them or not according to users' selection, it may be better.I need these auxiliary terms to do things else.
HP
  2 件のコメント
kele xu
kele xu 2016 年 8 月 4 日
I have the same question, how to model noise-free case with fitrgp function.
Shenglin Huang
Shenglin Huang 2020 年 10 月 13 日
Same question. This problem is really confusing.

サインインしてコメントする。

回答 (1 件)

Gautam Pendse
Gautam Pendse 2018 年 2 月 6 日
You can set 'Sigma' to a small value and set a name value pair called ConstantSigma to true. That way the initial value specified in 'Sigma' will not be optimized.
Hope this helps,
Gautam
  2 件のコメント
Pengfei Wei
Pengfei Wei 2019 年 12 月 19 日
Thanks for you answer. I have made the set ('Sigma',0.0001,'ConstantSigma',true) for my test, but the sigma value in the trained GPR model turn out to be 0.0120. Since I also want to use the GPR model in a interpolation way, I am quite strugglling with this issue. Besides, can I get the covariance matrix of the training data directly from the trained model? Thank you!
Sterling Baird
Sterling Baird 2021 年 1 月 6 日
編集済み: Sterling Baird 2021 年 1 月 6 日
For the sigma value, maybe try changing 'SigmaLowerBound' to a lower value (defaults to 1e-2*std(y)). If you figure this out, I'd be interested to know as well. Where are you checking to get 0.0120?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by