How to find the final formula or equation that is produced by regression learner.

1 回表示 (過去 30 日間)
Yaser Khojah
Yaser Khojah 2019 年 5 月 14 日
コメント済み: Nathan Williams 2022 年 7 月 28 日
I have created a trainedModel for my data by using Train Regression Models in Regression Learner App. After I exported my model to workspace, I'm looking for a way to write my equation on a paper as y = variable1......Variable 16. The reason I need this is to see how these variables are correlated. Is there any way to study this? I see the trainedModel structure but I can’t see the equation in terms of formal. Any idea please?
I have this:
yfityfit = trainedModel.predictFcn(T)
%% but I wanna see the equation inside the trainedModel.predictFcn
rainedModel
trainedModel =
struct with fields:
predictFcn: @(x)exportableModel.predictFcn(predictorExtractionFcn(x))
RegressionTree: [1×1 classreg.learning.regr.CompactRegressionTree]
About: 'This struct is a trained model exported from Regression Learner R2019a.'
HowToPredict: 'To make predictions on a new predictor column matrix, X, use: ↵ yfit = c.predictFcn(X) ↵replacing 'c' with the name of the variable that is this struct, e.g. 'trainedModel'. ↵ ↵X must contain exactly 16 columns because this model was trained using 16 predictors. ↵X must contain only predictor columns in exactly the same order and format as your training ↵data. Do not include the response column or any columns you did not import into the app. ↵ ↵For more information, see How to predict using an exported model.'
  2 件のコメント
Samuel Ferreira
Samuel Ferreira 2022 年 4 月 23 日
Hey, I'm have the same problem. I want get the equation of the regression learning after training. Some answer for it?
Nathan Williams
Nathan Williams 2022 年 7 月 28 日
I also have the same problem.

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by