File Exchange

image thumbnail

Plot Confusion Matrix

version 1.1.0.0 (56.6 KB) by Vahe Tshitoyan
Plots a colour-coded confusion matrix.

37 Downloads

Updated 14 Jun 2018

GitHub view license on GitHub

An alternative to plotconfusion from the Neural Network Toolbox.
Usage:
plotConfMat(confmat)
or
plotConfMat(confmat, labels)

Cite As

Vahe Tshitoyan (2020). Plot Confusion Matrix (https://github.com/vtshitoyan/plotConfMat), GitHub. Retrieved .

Comments and Ratings (29)

hatem barhoom

Andres Moran Duran

Thanks you

Soumitra Mehrotra

Elhassan Mohamed

Amol Nikam

husam janahi

Andries Meintjes

Rupert Thomas

David Franco

yang

Nebitno

Victor Lopes

Hamza Fadhel

Thank you so much

Vahe Tshitoyan

Thanks for your feedback. You can change gray on line 41 in plotConfMat.m to the colormap of your choice.

David Franco

Is there a way to change the colors?

Mohd Faid Yahya

Zoe

hartanto

Cygnus Sphinx

Pierre Lonfat

Actually how do I save that as a figure please ?

Pierre Lonfat

Canberk Suat Gurel

Cheikh Latyr FALL

Ruba Alomari

Faraz

Aris Fergadis

Kuifeng

Hi, Vahe Tshitoyan

Nice work, maybe can add some more description for ease of usage. For example.

usage:
% 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

AC

Updates

1.1.0.0

Updated the description.

1.1.0.0

Updated the avatar.

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux