Using ClassifierMeasurementsObject you can plot nice ConfusionMatrix:
But how to mimic this matrix plot from a plain Matrix?
In other terms, from
M={{2,0},{1,1}}
k={"A","B"}
I would like to reproduce the previous plot.
So far I tried:
MatrixPlot[M,Frame->True,
FrameLabel->{"actual","predicted"},
ColorFunction->"Rainbow"]
but a lot of things are missing.
The most important are:
numbers in the plot
tick labels (note that they are rotated which is important as I have long names)