Course Wiki

Confusion table — Machine Learning Zoomcamp Module 4

Confusion table is a way of measuring different types of errors and correct decisions that binary classifiers can make. Considering this information, it is possible to evaluate the quality of the model by different strategies.

Machine Learning Zoomcamp › Module 4: Evaluation Metrics for Classification › Confusion table

Notes

Confusion table is a way of measuring different types of errors and correct decisions that binary classifiers can make. Considering this information, it is possible to evaluate the quality of the model by different strategies.

When comes to a prediction of an LR model, each falls into one of four different categories:

Confusion Table is a way to summarize the above results in a tabular format, as shown below:

Predictions
Negative Positive
Actual Negative TN FP
Positive FN TP

!confusion_matrix.png

The accuracy corresponds to the sum of TN and TP divided by the total of observations.

The code of this project is available in this jupyter notebook.

Add notes from the video (PRs are welcome)

⚠️ The notes are written by the community.
If you see an error here, please create a PR with a fix.

Key concepts

Sources


DataTalks.Club. Hosted on GitHub Pages. Built with Rustkyll. We use cookies.