Saving the regression trained model

조회 수: 12 (최근 30일)
Nethravathi S
Nethravathi S 2021년 9월 2일
댓글: Wan Ji 2021년 9월 2일
Hello,
I am using regression app for forecasting.
After training I am exporting the trained model for actual prediction.
But, when I am closing matlab and reopening later, the model trained is gone.
How to save the regression model trained, so that I can use it any time later?

채택된 답변

Wan Ji
Wan Ji 2021년 9월 2일
You should save the trained model after click the 'export' the model to workspace. (you can see you saved model in workspace)
save trainedModel trainedModel
Then you can see a file named 'trainedModel.mat' in your current folder.
if you want to reuse your trained model, just use
load('trainedModel.mat');
Then all is ok
  댓글 수: 2
Nethravathi S
Nethravathi S 2021년 9월 2일
Thank you.. It worked
Wan Ji
Wan Ji 2021년 9월 2일
My pleasure :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by