How to train fitcecoc by using COST SENSITIVE SVM

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.

 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

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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!