How to plot confusion matrix
古いコメントを表示
I have performed my image segmentation using kmeans but need to get the confusion matrix. My image segmentation matrix for six(6) classes has numbers 1 to 6 in it which is perfect. On getting my trained classes BW_1,BW_2,BW_3,BW_4,BW_5,BW_6 I have in each only one's(1's) and zero's(0's) but need to create a single confusion matrix like in this link http://www.mathworks.com/help/nnet/ref/plotconfusion.html?searchHighlight=confusion%2520matrix
採用された回答
その他の回答 (1 件)
Star Strider
2014 年 10 月 20 日
編集済み: Star Strider
2014 年 10 月 20 日
2 投票
7 件のコメント
bayoishola20
2014 年 10 月 20 日
Star Strider
2014 年 10 月 20 日
My pleasure!
I do not completely understand your comment, though. Is your problem solved or do you need more help?
bayoishola20
2014 年 10 月 20 日
Star Strider
2014 年 10 月 20 日
I still do not understand how you could have a matrix of classes. In the confusion matrices I have used in statistics, each element has a known class and a predicted class, in your example, every one being a class numbered 1-6. Your classifier should output a particular class number for each input pattern. Those vectors are then the inputs to your confusion matrix.
bayoishola20
2014 年 10 月 20 日
Star Strider
2014 年 10 月 20 日
If you have vectors with your known and predicted classes, those are your inputs to your confusion matrix. I got the impression from your Question, specifically ‘My image segmentation matrix for six(6) classes has numbers 1 to 6 in it which is perfect.’ that you already had those and simply wanted to know how to create a confusion matrix for your 6 classes.
bayoishola20
2014 年 10 月 20 日
編集済み: bayoishola20
2014 年 10 月 20 日
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!