I have a dataset. I want to do cross validation. How can I divide it into testing and training data ?
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
dpb
2016 年 8 月 22 日
Just randomize over the overall list...
2 件のコメント
dpb
2016 年 8 月 22 日
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...
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!