Can the predicted function (equation) created by the regression learner toolbox be output?

조회 수: 1 (최근 30일)
I have created a trained model GPR (RegressionGP,matern52) and have tested it using the predictFcn. Is there any way I can look at the final equation and associated parameters so that it can be incorporated into c++ code? Or do I have to find a similar c++ library or python machine learning library and try to duplicate my results (using a similar Gaussian Process Model)?
  댓글 수: 2
Sadaf Batool
Sadaf Batool 2020년 12월 19일
편집: Sadaf Batool 2020년 12월 19일
Hey @Scott,
Were you able to get the equation from the trained model?
Scott
Scott 2020년 12월 21일
No. As Carl states below, I was able to get the final Hyperparameters, but not the equation(s). To incorporate into C++ code I duplicated the analysis in Python using scikit-learn using the aforementioned Hyperparameters and similar GPR model. It is very easy deploy and integrate Python machine learning models using "pickle" file and "SimpleXMLRPCServer" function. The matlab "coder" is another expensive Matlab add on that looked difficult to deploy with C++ code. My solution took a day or so. Scott.

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

답변 (1개)

Carl
Carl 2017년 7월 24일
You can extract the final parameters and equation from the GPR model's properties. See the following page:
You can obtain the values of beta, sigma, the hyperparameters, and other properties. Let me know if this doesn't provide what you are specifically looking for.
  댓글 수: 4
YiHao Zhu
YiHao Zhu 2018년 2월 6일
After I use regression learner and export the model to the workspace, I can use it to train my new data in matlab. But when I try to use matlab coder to develop c++ code, it fail. Really need a video to show me how to do it.
YiHao Zhu
YiHao Zhu 2018년 2월 6일
I want to use matlab coder to let my machine learning model in workspace to a function with c++ code.

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

카테고리

Help CenterFile Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by