An alternative to plotconfusion from the Neural Network Toolbox.
Vahe Tshitoyan (2020). Plot Confusion Matrix (https://github.com/vtshitoyan/plotConfMat), GitHub. Retrieved .
Thank you for your work, however, according to confusionmat (I assume the input is generated by this function) https://www.mathworks.com/help/stats/confusionmat.html.
Shouldn't your labels for 'Output class (Predicted)' and 'Target class (Actual)' be swapped? Arent they on the wrong axes?
Thank you so much
Thanks for your feedback. You can change gray on line 41 in plotConfMat.m to the colormap of your choice.
Is there a way to change the colors?
Actually how do I save that as a figure please ?
Hi, Vahe Tshitoyan
Nice work, maybe can add some more description for ease of usage. For example.
% Find the confusionmat matrix first
[C,order] = confusionmat(TestResults,PredictionResults)
% Then, plot
plotConfMat(C) plots the confmat with integers 1 to n as class labels
plotConfMat(C, order) plots the confmat with the specified labels
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!