Python Forum
misclassification rate calculation for multi class label - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: misclassification rate calculation for multi class label (/thread-7488.html)



misclassification rate calculation for multi class label - python_newbie09 - Jan-12-2018

I have a confusion matrix with 4 labels and the results were as below

[[ 81 4 41 0]
[ 10 10 6 1]
[ 7 0 392 0]
[ 4 2 8 5]]

Now i wish to calculate the misclassification rate but I am not sure how to do this in Python. Would appreciate your help to show me how to code this part.

Thank you.


RE: misclassification rate calculation for multi class label - Larz60+ - Jan-12-2018

see: https://stats.stackexchange.com/questions/146294/what-is-misclassification-rate-how-do-we-calculate-it