Show accuracy for each class in every given test data using sklearn
<p>I have something to ask.</p>

<p>I've trained my sklearn Logistic Regression classifier with 10 thousand training data in Python. 
I have 2 thousand test data and I use accuracy score to show the accuracy and confusion matrix.. but both only show overall accuracy of all test data.</p>

<p>what I want is for example:</p>

<p>Test data 1: "abc"</p>

<p>Accuracy of class A given test data: 80%</p>

<p>Accuracy of class B given test data: 10%</p>

<p>Accuracy of class C given test data: 10%</p>

<p>Test data 2: "def"</p>

<p>Accuracy of class A given test data: 50%</p>

<p>Accuracy of class B given test data: 30%</p>

<p>Accuracy of class C given test data: 20%</p>

<p>and so on for the rest of all the test data.
and I want to show it in table like this.
<a href="http://i.stack.imgur.com/jTVpP.png" rel="nofollow">example</a></p>

<p>is it possible to that using sklearn?</p>