k-fold Cross Validation in Classification Learner
2 次查看(过去 30 天)
显示 更早的评论
Hi there, Just wandering how data is partitioned in k-fold cross validation in Classification Learner? Is the data partitioned into k-folds according to class/label or complete random? That is, Is data split up into n subsets according to n classes, partitioned in the class subsets, and then grouped together into the folds used to train/test?
0 个评论
回答(1 个)
ahmed nebli
2018-8-22
in k-fold cv, the the data is splited to k-1 for taining and 1 for testing.(e.g.: if you have 100 subject and you use 10-fold cv it would be splited into 90 subject for training and 10 subjects for testing and you make k iteration each time the date is re-splited to 90 and 10.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification Trees 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!