subplot response plots of regression models in the regression learner app

1 view (last 30 days)
I am using the regression learner app to train a selection of different models on my data. I just want to plot the response plots of different models as subplots in one customized figure.
I know I can "Export plot to figure" but I can just edit this figure and save it. I don't want to save these figures individually and combine them later in one figure.
Can I export the figure data of each model and use it later to plot them combined in one figure using a "subplot" code?
  2 Comments
dpb
dpb on 18 Jun 2021
I've never really used the app but it appears you have to export the trained model and then use predictFcn function from a Staff response to a previous Q? https://www.mathworks.com/matlabcentral/answers/452653-regression-learner-data-exporting?s_tid=answers_rc1-1_p1_MLT and reading the doc.
I don't know whether that function includes the raw as well as predicted data or not.
I've typically found the user interface overhead more trouble than worth and so just have always fit a model explicitly so no real familiarity with the app...
Ameen Bassam
Ameen Bassam on 21 Jun 2021
Many thanks for your effor as I couldn't find it before.
This answer could help.

Sign in to comment.

Accepted Answer

Ameen Bassam
Ameen Bassam on 21 Jun 2021
As @dpb mentioned, the trained model can be extracted to the workspace. Then, using the raw data and 'predictFcn' function, the predicted value can be available on the workspace. Finally, I can use my plot code to plot and supblot as much as I can with full flexibility.
Thanks again @dpb

More Answers (0)

Community Treasure Hunt

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

Start Hunting!