MATLAB Answers

Question about the CVmodels generated from regression learner app in machine learning toolbox?

1 view (last 30 days)
xi
xi on 12 Jul 2017
Answered: Amit Doshi on 19 Jul 2017
In the regression learner, one can choose the "cross validation" option (i.e., 5 fold) to generate a model and use that model to make predictions using mdl.predictfun(testdata)
However, if done by code, when "cross validation" is specified, the model generated is "RegressionPartitionedEnsemble" type, which cannot be used directly using predict(mdl, testdata).
I'm just wondering, how is the CVmodel generated with the app learner? what is the equivalent way to generate it with code so that one can use to make predictions?

  0 Comments

Sign in to comment.


Translated by