フィルターのクリア

How do I generate a confusion matrix for multi-class example?

13 ビュー (過去 30 日間)
Kirty Vedula
Kirty Vedula 2013 年 2 月 22 日
コメント済み: Selena Johnson 2018 年 8 月 30 日
I have 8 classes to be allocated to a 10 X 800 sized dataset. I have done the classification successfully - using Support Vector Machines. But I am puzzled as to how I can show the results of it? How do I generate a confusion matrix for 8 classes? What is the best way to view the hyperplane generated by the multiclass SVM?
Please guide me through this. Provide me some examples.
Help is very much appreciated. Thanks!

回答 (2 件)

Eric Nunes
Eric Nunes 2014 年 4 月 25 日
You just need to have 2 parameters, the predicted labels and the actual labels. After that just use C = confusionmat(predicted , Actual). It will construct the confusion matrix.

Abbas Manthiri S
Abbas Manthiri S 2017 年 2 月 7 日
  1 件のコメント
Selena Johnson
Selena Johnson 2018 年 8 月 30 日
Hi does this code work for categorical data as well? I just tried to run it and it is giving me error messages about line 45.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Statistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by