MATLAB Answers


How to train fitcecoc by using COST SENSITIVE SVM

Asked by Elena Casiraghi on 19 Aug 2019
Latest activity Commented on by lokesh singh on 2 Sep 2019
Dear, I have a multiclass problem with an highly unbalanced dataset.
How can I train a multiclass, error-correcting output codes (ECOC) model using svm cost sensitive svm?
If I use svm for a binary classifier I would just set the cost matrix.
However, here we have a multiclass poroblem and ECOC models perform much better.


Sign in to comment.

1 Answer

Answer by Subhadeep Koley on 22 Aug 2019
 Accepted Answer

MATLAB provides ClassificationECOC and fitcecoc for Multiclass model for support vector machines (SVMs) and other classifiers.
The documentation here might help you.

  1 Comment

thanks for your suggestions but sir how can we use cost in fitcecoc function for multiclass classification.

Sign in to comment.