Skip to content

I wrote this pair of Python 3 functions in Jupyter Notebook to 1) Manually calculate confusion matrix from test_y and test_predictions, and 2) Nicely format the confusion matrix output in a table.

Notifications You must be signed in to change notification settings

chris-relaxing/confusion-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

confusion-matrix

While working on a Machine Learning project, I wrote this pair of Python 3 functions in Jupyter Notebook to:

  1. Manually calculate confusion matrix from test_y and test_predictions (manually_calculate_tp_tn_fp_fn.py)
  2. Nicely format the confusion matrix output in a table (display_confusion_matrix.py)

alt text

I have also written a blog article about this here:
http://bluegalaxy.info/codewalk/2017/12/20/data-science-how-to-calculate-confusion-matrix/

About

I wrote this pair of Python 3 functions in Jupyter Notebook to 1) Manually calculate confusion matrix from test_y and test_predictions, and 2) Nicely format the confusion matrix output in a table.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages