Random Forest - confidence and class probability
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,
Huh. Not sure why it's gone. You could go find the code and see how it worked before and put it back in.
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
intree.cpp
file.