How to do k-fold cross validation in matlab?

297 views (last 30 days)
I am working on my face recognition project.i need to do k-fold cross validation to check my classifier accuracy.Can anybody please tell me how i can do K-fold cross validation for my data of images?
Munshida P
Munshida P on 25 Dec 2019
Hii....Iam also doing the same one now. Can you please provide your code if it is available?

Sign in to comment.

Answers (1)

Matthew Eicholtz
Matthew Eicholtz on 9 May 2017
I think the function crossvalind may help. Check out the example of 10-fold cross validation provided at that link.


Community Treasure Hunt

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

Start Hunting!

Translated by