ajaiantilal / randomforest-matlab

Automatically exported from code.google.com/p/randomforest-matlab
6 stars 6 forks source link

Confusion Matrix #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
i d like to make an accuracy assessment on each class im using.
In many papers ive read, thats its possible to compute a confusion Matrix, from 
which i could calculate my classaccuracy...
Unfourtntly i dont know how to implement the confusion Matrix, also its written 
in the readme.
Im usin v0.02 from RF_MexStandalone-v0.02.zip 

Would be awesome if u could help me out, coz i need it for my ba thesis badly ;)

greetings

Original issue reported on code.google.com by s.schopp...@helimail.de on 25 May 2011 at 11:39

GoogleCodeExporter commented 8 years ago
I am not sure if I fully understood you, but I think this is not about random 
forests.

There are a lot of user built matlab functions available on the web calculating 
a confusion matrix given the real and predicted class. Furthermore there is 
even a builtin function in matlab for this purpose 
(http://www.mathworks.com/help/toolbox/stats/confusionmat.html).
So if you use your real classes and the predicted ones from RF output you 
should easily be able to obtain the desired confusion matrix.

Original comment by johannes...@gmail.com on 25 May 2011 at 12:43