MATLAB Answers

How to extract the predicted response from the Regression Learner App ?

32 views (last 30 days)
After training a model using the Regression Learner App, how to extract the predicted response (values)?
Thank you.


Sign in to comment.

Accepted Answer

Bhargavi Maganuru
Bhargavi Maganuru on 12 Sep 2019
To extract the predicted response for trained data,
Select Response plot and click Export plot to Figure. It creates a figure from the plot.
To save data to workspace from the figure select File>Save Workspace. This creates a .mat file.
Load .mat file and get predicted responses
Hope this helps!


Show 1 older comment
Bhargavi Maganuru
Bhargavi Maganuru on 13 Sep 2019
Solution which I have mentioned is for MATLAB R2019a version.New feature Export plot to Figure in R2019a, creates figure from plot.
While saving the data to the workspace, I stored the file as 'responses.mat', which containes true and predicted responses of training data.
As there is no feature Export plot to Figure in R2018a, you can export model using Export Model and predict the responses of the training data.
Suppose you export the model as trainedModel to the workspace you can do following
PredictedReponses=trainedModel.predictFcn(T) %where T is the Training data
Balantrapu Sai harshit
Balantrapu Sai harshit on 14 Aug 2020
Can anyone briefly explain how to download the plots that we have predicted in Regression learner in R2018a

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!