Cross-validation of single binary learners in multiclass classification (fitcecoc)
조회 수: 1 (최근 30일)
이전 댓글 표시
I am training a multiclass classification model based on SVM using the function fitcecoc with coding design 'allpairs', meaning that binary models are trained for all possible combinations of class pairs.
You can cross-validate this multiclass (ECOC) classifier and estimate its generalization error by for example doing:
Mdl = fitcecoc(X,Y,'Learners',t,...
'ClassNames',{'setosa','versicolor','virginica'});
CVMdl = crossval(Mdl);
oosLoss = kfoldLoss(CVMdl)
In addition to this, would it also be possible to cross-validate and estimate the generalization error for the single binary models?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Classification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!