How to use msereg and cross-validation

I'm using a fitnet and i'd like to know if it's possible to do regularization, using msereg, and cross-validation at the same time. It seems that when i try it the regularized cost function is applied to the validation and test sets (using dividerand and divideind).

 Accepted Answer

Yes, any cost function will be applied to the whole dataset.

More Answers (0)

Categories

Find more on Biotech and Pharmaceutical 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!