How to obtain cross validation results while developing model by using plsregress?
3 views (last 30 days)
Show older comments
I am using the following code to develop a 10-fold cross-validated (CV) partial least squares regression model.
[XL,yl,XS,YS,beta,PCTVAR,stat, MSE] = plsregress(x,y,3,'CV',10);
By default, Matlab gives only the final estimated parameters. I want to see the parameter distribution and fitting efficiency while doing the cross-validation. Without writing the CV code manually, how can I see these results?
Thanks
Answers (0)
See Also
Categories
Find more on Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!