Cross-validated model parameters extraction in fitcecoc SVM linear kernel
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to extract the parameters from the cross-validated model of fitcecoc SVM with linear kernel. I want to extract the parameters which I could use for training and testing. I tried to look into the model but I could not find the bias/beta etc.
mdl = fitcecoc(Xs,Y,'Coding','onevsall','Learners',t);
CVMDL = crossval(mdl, 'kfold',5);
Error = kfoldLoss(CVMDL)
0 个评论
回答(1 个)
Sulaymon Eshkabilov
2021-10-30
You should use these fcns instead of crossval:
kfoldPredict(), predict(), resubPredict()
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification Learner App 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!