It is one of the simplest metrics that helps in finding how correct and how accurate the model is. It is used with classification problems wherein the output (or the class into which the dataset has been classified into) could belong any of the classes (one of the 2 in binary classification and one of the many in multi-class classification).
The confusion matrix is not a performance measure on its own, but most of the performance metrics are based on this matrix and the value this matrix gives out.
Terminologies associated with the confusion matrix:
TPR = True positives/ (True positives + False negatives)
TNR = True negatives/ (True negatives + False positives)
FPR = False positives / (False positives + True negatives)
FNR = False negatives / (False negatives + True positives)
The ideal situation is when the model gives 0 false positive values and 0 false negative values. But this wouldn’t be the case in real-life. The confusion matrix contains enough information so as to calculate precision and recall values as well.
The below image shows what a confusion matrix would look like while classifying an animal as a cat or a dog.
Conclusion
In this post, we understood about confusion matrix and how it can be used to determine the performance of a model.
Hey, Good effort to educate people on Machine Learning, it feels more like a course curriculum in here. Good job!.
Checking for course
Test
Wow what great post about machine learning I never read such a blog before, this is very interesting!
Machine learning will definitely change the future. I like most of you blogs. I love this topic & especially the way you have explained it is really awesome. Thanks for sharing this info. It a nice time to spend on these interesting blogs. Thanks you.
Leave a Reply
Your email address will not be published. Required fields are marked *