how to do 5 fold cross-validation for regression problem?
4 次查看(过去 30 天)
显示 更早的评论
want to break a simple dataset such as bodyfat_dataset into 5 folds. then use the indices to perform training and testing of the dataset using fitnet.
0 个评论
回答(1 个)
ahmed nebli
2018-10-5
u have to use cvpartition like this exapmple kf=5; c = cvpartition(size(data.label,1),'KFold',kf);
u can find more information about cvpartition here https://www.mathworks.com/help/stats/cvpartition.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gaussian Process Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!