How to apply confusion matrix on deep learning convolution neural network to evaluate the the capability of this machine learning technique for image classification.
Confusion matrix provides a performance evaluation measurement for a recognition scenario. It is a grid of actual classification vs. predicted classification. Suppose in a box there some rectangular objects (R) and some triangular (T) objects. An object is taken out at random and the computer is asked to predict its type (class). Four situations can arise for each class :
– Actually R and predicted as R (correct classification : true positive)
– Actually not R and predicted as not R (correct classification : true negative)
– Actually not R but predicted as R (incorrect classification : false positive)
– Actually R but predicted as not R (incorrect classification : false negative)
Following measures can be calculated :
(1) Accuracy = Correct predictions / Total predictions
Confusion matrix provides a performance evaluation measurement for a recognition scenario. It is a grid of actual classification vs. predicted classification. Suppose in a box there some rectangular objects (R) and some triangular (T) objects. An object is taken out at random and the computer is asked to predict its type (class). Four situations can arise for each class :
– Actually R and predicted as R (correct classification : true positive)
– Actually not R and predicted as not R (correct classification : true negative)
– Actually not R but predicted as R (incorrect classification : false positive)
– Actually R but predicted as not R (incorrect classification : false negative)
Following measures can be calculated :
(1) Accuracy = Correct predictions / Total predictions