There is some interesting behaviour with plotconfusion when passing it double values instead of categorical values. If I have some predicted responses and plot the confusion matrix like this:
plotconfusion(Y', yEst)
I get different results from when I do this to set the decision boundary at 0.5 (which is what the confusion() function documentation claims is the boundary used, although I'm not sure if that's what plotconfusion uses).
plotconfusion(Y', double(yEst > 0.5))
What is it actually doing behind the scenes?
Code and data provided
Best Answer