Loovelj / pretty-print-confusion-matrix

Confusion Matrix in Python: plot a pretty confusion matrix (like Matlab) in python using seaborn and matplotlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confusion Matrix in Python

Plot a pretty confusion matrix (like Matlab) in python using seaborn and matplotlib

Created on Mon Jun 25 14:17:37 2018 @author: Wagner Cipriano - wagnerbhbr

This module get a pretty print confusion matrix from a np matrix or from a y_test and predition values

Examples: alt text

alt text

REFerences:

  1. Mat lab confusion matrix

    https://www.mathworks.com/help/nnet/ref/plotconfusion.html

    https://www.mathworks.com/help/examples/nnet/win64/PlotConfusionMatrixUsingCategoricalLabelsExample_02.png

    https://stackoverflow.com/questions/5821125/how-to-plot-confusion-matrix-with-string-axis-rather-than-integer-in-python/51176855#51176855

  2. Other Examples in python

a) https://stackoverflow.com/a/51176855/1809554

b) https://www.programcreek.com/python/example/96197/seaborn.heatmap

c) http://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html#sphx-glr-auto-examples-model-selection-plot-confusion-matrix-py

About

Confusion Matrix in Python: plot a pretty confusion matrix (like Matlab) in python using seaborn and matplotlib

License:Apache License 2.0


Languages

Language:Python 100.0%