Random Forest - confidence and class probability

asked 2016-02-04 13:03:53 -0500

mask2007 gravatar image

updated 2016-02-04 13:04:18 -0500

This issue has been asked several times on Stack Overflow as well as here. Just wanted to re-check again if some one has any solution for it.

Do you guys know how to get probabilistic prediction from a 2-class random forest in opencv 3.00 (RTrees)?

I know there was predict_prob() method in Opencv 2.4 but it's been disappeared in version 3.00.

No idea why it has been removed in version 3.00 and 3.10!

Thanks,

edit retag flag offensive close merge delete

Comments

Huh. Not sure why it's gone. You could go find the code and see how it worked before and put it back in.

Tetragramm gravatar imageTetragramm ( 2016-02-04 22:26:14 -0500 )edit

Thanks @Tetragramm! The machine learning structure in opencv 3 was changed dramatically and it's very different from opencv 2.4. It's not obvious to me how I can access the local variable votes in tree.cpp file.

mask2007 gravatar imagemask2007 ( 2016-03-09 12:30:57 -0500 )edit