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.
Usage:
plotConfMat(confmat, labels, fontsize, grayscale)
confmat
(required): confusion matrixlabels
: 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)