/pretty-print-confusion-matrix

plot a pretty confusion matrix with seaborn and matplotlib in python

Primary LanguagePythonApache License 2.0Apache-2.0

pretty-print-confusion-matrix

plot a pretty confusion matrix with seaborn and matplotlib in python

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

  2. Other Examples in python

a) https://stackoverflow.com/questions/28200786/how-to-plot-scikit-learn-classification-report

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

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

d) https://stackoverflow.com/questions/19233771/sklearn-plot-confusion-matrix-with-labels/31720054

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