Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confusion matrix of 10 fold cross validation

I am trying to perform 10 fold cross validation for analysing the results of my character recognition project using neural networks in matlab. I know how to calculate the confusion matrix for each fold. But the problem is i dont know how to calculate the confusion matrix averaged over the 10 folds.

like image 304
Anu Avatar asked Mar 14 '14 12:03

Anu


1 Answers

If you have the confusion matrices for each fold, you can simply sum their values to get the total confusion matrix.

For example, if you had two folds,and the resulting confusion matrices were

                     Classifier
                 -----------------
                 Class 1   Class 2
Actual | Class 1      25         3
       | Class 2       6        21

                     Classifier
                 -----------------
                 Class 1   Class 2
Actual | Class 1      23         5
       | Class 2       4        23

Then the total confusion matrix is

                     Classifier
                 -----------------
                 Class 1   Class 2
Actual | Class 1      48         8
       | Class 2      10        44
like image 93
Chris Taylor Avatar answered Oct 03 '22 18:10

Chris Taylor