fitgpr gaussian regression parameters

조회 수: 5 (최근 30일)
Sara Hamdan
Sara Hamdan 2020년 4월 5일
댓글: israt fatema 2022년 4월 28일
Hello guys,
I am using Gaussian Process Regression 'fitgpr' to fit a model to my data (~ 17,500 x 3 input, 17,500 x1 output), it works perfect (very low loss value).
I want to compare with the polynomial fitting, I have the number of coefficients in polynomials but how to get them in fitgpr?
I believe the 'coefficients' in Gaussian are the mean & variance (right?) how to get them?
(Any help is appreciated, I am a bit confused, thank you)
Regards,
Sara

채택된 답변

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020년 4월 5일
A Gaussian Process Regression is a non-parametric model, which means it heavily depends of the training data you use. This means that, in this case, every training point will have a coefficient of it's own for the covariance/kernel function, which makes a comparison between Gaussian Process coefficients and Polynomial Coefficients impractical. For a better understanding of the method I would strongely suggest the following online book http://www.gaussianprocess.org/gpml/, specially the chapter 2 which focus on regression.
If you want to compare both methods my main recomendation is to used cross-validation. The simpliest way to do it is to divide your training data in two sets, a training and a validation one. You can then train both models in the training set and evaluate the loss in the test set. A Gaussian process is able to represent any dataset with 0 error depeding of your parameters, thus a cross validation is needed to really be able know if the model is good enough to be generalized.
  댓글 수: 4
Sara Hamdan
Sara Hamdan 2020년 4월 5일
Ok it is more clear now, thank you so much
israt fatema
israt fatema 2022년 4월 28일
How can i use other evaluation metrics (https://au.mathworks.com/help/stats/gaussian-process-regressionmodels.html?searchHighlight=gaussian%20process%20regression%20model&s_tid=srchtitle_gaussian%2520process%2520regression%2520model_1)
for Gaussian process regression model, i.e CRPS or prediction interval coverage probability (PICP)?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

hichem tahraoui
hichem tahraoui 2020년 7월 25일
Hello
if i understood, you want to know the amount of parameters that was used in SVM, you can use the code from matlab `` Quantity_of_support_vectors = size (model.SupportVectors, 1) ''
on the other hand in the Gaussian process, I did not find how to obtain the number of parameters. it's always the same problem

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by