How to divide images in a folder into two groups (training set and test set)?
2 views (last 30 days)
Show older comments
I do not know the function to divide the images or maybe you can help me by sharing other ways?
[trainingSet, testSet] = function (imds, 0.3, 'randomize');
0 Comments
Answers (1)
Srivardhan Gadila
on 29 Apr 2020
[trainingSet,testSet] = splitEachLabel(imds,0.7,'randomized');
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!