I have a dataset. I want to do cross validation. How can I divide it into testing and training data ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have got 100 folders of which 50 are male and 50 are female. Each folder contains 6 images. I want to implement cross validation. I just know how to implement the cross validation if I just have the 100 distinct images. But here I have 100 different folders how to divide them for cross validation ? Need help.
0 Kommentare
Antworten (1)
dpb
am 22 Aug. 2016
Just randomize over the overall list...
2 Kommentare
dpb
am 22 Aug. 2016
Return the list of subdirectories first in an array then select randomly from that array....there are quite a number of threads with code on Answers that show how to traverse a subdirectory if that's an issue...
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!