How do the multiclass SVM model function 'fitcecoc' work?

4 次查看(过去 30 天)
Mdl = fitcecoc(X,Y)
Suppose I have 4 classes as below:
As seen from the table below, suppose for learner 1, the svm predicted it as Cat. For learner 2 it was predicted as Fish. For learner 3 it is predicted as Cat. For learner 4 it is predicted as Fish. For learner 5 it is predicted as Rabbit. For learner 6 it is predicted as Rabbit.
How do the ECOC svm determine if it is cat, fish or rabbit in this case?

回答(1 个)

Dinesh Yadav
Dinesh Yadav 2020-3-9
Kindly go through the documentation of fitcecoc and go through the sub sections Coding Design and Error Correcting Output Codes Model part to understand how it works.
  4 个评论
tinkiewinkie
tinkiewinkie 2020-3-9
From what I understand, confusion matrix only gives me the final result of the classifcation (post-classification) how many of which are classified correctly and how many are classified wrongly. From your explanation, the probability you mentioned is a decision maker that is still within the classification process itself. May I know how I should compute the probability in this case?
Dinesh Yadav
Dinesh Yadav 2020-3-9
Sorry my bad it wont be probability but classification score. Also i have taken above data point as test data point not training. The score would be computed as in doc under Error Correcting Output Codes Model.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Classification Ensembles 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by