Skip to content

Plots a confusion matrix (classification) on MATLAB/Octave

License

Notifications You must be signed in to change notification settings

gutierrezps/plotConfMat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plotConfMat

Plots a confusion matrix with colorscale, absolute numbers and precision normalized percentages. This is a basic alternative to MATLAB's plotconfusion if you do not have the Neural Network Toolbox. Compatible with GNU Octave.

Confusion matrix plot using this library

Usage:

plotConfMat(confmat, labels, fontsize, grayscale)
  • confmat (required): confusion matrix
  • labels: class labels (e.g. {'Dog', 'Cat'}) (default: {'1', '2', ...})
  • fontsize: to be used in plot texts (default: 14)
  • grayscale: if true, use grayscale colors (default is false - use blue colors like scikit-learn)

About

Plots a confusion matrix (classification) on MATLAB/Octave

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • MATLAB 100.0%