How can I get the equation from Regression Learner App?

9 ビュー (過去 30 日間)
Diego Jimenez
Diego Jimenez 2020 年 7 月 28 日
Hi there,
I am using the MATLAB regression learner app and have identified GP Regression Matern 5/2 as the best model. I have exported the model to Matlab and was wondering how I could obtain an equation linking my predictor variables to my response variable. I have attached a screenshot of what is found in the Regression GP workspace.
Many thanks.

回答 (1 件)

Ayush Gupta
Ayush Gupta 2020 年 9 月 8 日
編集済み: Ayush Gupta 2020 年 9 月 8 日
The Gaussian Process Model is equivalent to the following:
P(y|f,X)~N(y|Hβ+f,σ^2.I) Please refer to the documentation of Gaussian Process Regression Models below:
The example code files are attached to this article.
In order to see the prediction formula, you would need to collect the parameters and plug them into the equation.
The function "predictWithEquation" in the attachment "fitrgp_equation.m" could be used to accomplish this.
The following would be the prediction formula:
ypred = HFcn(XnewStd)*betaHat + KXnewXA*alphaHat;
The function "predictWithEquation" can also be used for predicting values by feeding in new data. Please look at "fitrgp_equation" in "fitrgp_equation.m" as an example.
  4 件のコメント
Prince Essemiah
Prince Essemiah 2022 年 5 月 19 日
Hey Nilanshu,
Please did you manage to find a solution to this problem? If yes, can you share the process.
ARUNKUMAR MARIMUTHU
ARUNKUMAR MARIMUTHU 2023 年 8 月 28 日
hi, is there any ways to extract equation from the favorite model? so that we can back calculate for validation

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

カテゴリ

Help Center および File ExchangeSupport Vector Machine Regression についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by