Show accuracy by classes

Hi -

I’m wondering if it possible to print accuracy by class from a ClassificationInterpretation object

For example, my confusion matrix looks like this:


Is it possible to just get the values from the diagonal (i.e. accuracy for that class)?

Did you solve it? I have the same question.

Yeah - can’t remember the exact syntax, but instead of doing interp.plot_confusion_matrix() you can just do something like interp.confusion_matrix() to get the values as a numpy array. then you can do whatever you want with them

1 Like