Confusion Matrix

Why Trust Techopedia

What Does Confusion Matrix Mean?

A confusion matrix is a type of table construct that plays a specific role in machine learning and related engineering. It helps to show the prediction and recall in a system where the values of the test data are known.

Advertisements

Techopedia Explains Confusion Matrix

Typically, a confusion matrix treats a binary process of classification. The resulting table is composed of two rows and two columns, filled with four values – true positives, false positives, true negatives and false negatives.

In the confusion matrix, a true positive exists where observation is positive with a positive prediction. A false positive exists where observation is negative, with a positive prediction. A true negative exists where observation is negative with negative prediction, and a false negative indicates a positive observation with a negative prediction.

Assorted equations then show how to calculate accuracy and precision for a given project. Many confusion matrix projects will utilize tools like Python SciKit or Numpy or others.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.