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!