Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Confusion about the confusion function

Asked by Christian on 5 Feb 2013

Hello,

It seems the confusion function has been changed in R2012b with respect to the one in R2010b (or somewhere along the way). When trying a made up example in both versions I get different outputs.

a = [1 0 0 0 0;0 1 0 0 0; 0 0 1 1 1];
b = [1 0 0 0 1;0 1 0 1 0; 0 0 1 0 0];
[c,cm,ind,per] = confusion(a,b);

Can anyone explain why I get (for the per matrix) the following for R2010b:

0,00    1,00    1,00
0,00	1,00	1,00
0,66	0,00	0,33

for R2012b:

0,00    0,50    0,50   1,00
0,00	0,50	0,50   1,00
0,50	0,00	1,00   0.50

I'm ok with the extra column, but should not the first three columns be the same?

Thanks!

0 Comments

Christian

Products

No products are associated with this question.

1 Answer

Answer by the cyclist on 5 Feb 2013

I don't have the NN Toolbox, so I cannot help you directly. However, I would think that for a simple example like this, it would be fairly straightforward to breakpoint into the code in debug mode, and just step through and see how the calculations differ. That may give you some insight.

Does the documentation suggest any differences?

0 Comments

the cyclist

Contact us