Posts

Showing posts from October, 2018

What is a Confusion Matrix in Machine Learning

Image
A confusion matrix is a technique for summarizing the performance of a classification algorithm. Classification accuracy alone can be misleading if you have an unequal number of observations in each class or if you have more than two classes in your dataset. Calculating a confusion matrix can give you a better idea of what your classification model is getting right and what types of errors it is making. In this post, you will discover the confusion matrix for use in machine learning. After reading this post you will know: What the confusion matrix is and why you need to use it. How to calculate a confusion matrix for a 2-class classification problem from scratch. How create a confusion matrix in Weka, Python and R. Classification Accuracy and its Limitations Classification accuracy is the ratio of correct predictions to total predictions made. 1 classification accuracy = correct predictions / total predictions It is often presented as a percenta...