Skip to content

farhadabedinzadeh/ColorHeatMap_ConfusionMatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A ColorMap(HeatMap)Style Confusion Matrix

This code is an alternative to the MATLAB functions plotconfusion and confusionchart.

How to Use?

[ConfMat,Accuracy] = CmapConfusionMatrix(Actual_Labels,Predicted_Labels,Cmap);   
  • ConfMat : Confusion Matrix
  • Accuracy : Accuracy of Classification
  • Actual_Labels : True Labels
  • Predicted_Labels : Output Labels
  • Cmap : Colormap Style
    • Colormap Name : Select from the table below

If no Cmap argument is provided, a popup window will appear asking you to select one of the listed colormaps, and if you ignore this step or try to choose default colormap, default option will be selected automatically.(like the below)

snip

HeatMap Styles

Colormap Name Color Scale
parula colormap_winter
turbo colormap_turbo
hsv colormap_hsv
hot colormap_hot
cool colormap_cool
spring colormap_spring
summer colormap_summer
autumn colormap_autumn
winter colormap_winter
gray colormap_gray
bone colormap_bone
copper colormap_copper
pink colormap_pink
jet colormap_jet

Output using summer ColorMap

colorconf


Mail