How to obtain probability estimates from RTrees classifier in OpenCV 3.x?

asked 2016-02-29 17:33:48 -0600

I am using OpenCV's implementation of Random Forests to classify some data. It appears to be working well, but I would like to obtain confidence values for the different classes. The output of RTrees::predict gives me a class number but I can't find a confidence or probability.

For example, scikit-learn provides this information in is predict_proba method (docs):

The predicted class probabilities of an input sample is computed as the mean predicted class probabilities of the trees in the forest. The class probability of a single tree is the fraction of samples of the same class in a leaf.
edit retag flag offensive close merge delete

Comments

Hi, Did you find any way to get the probability values of random forest classifier ???

Pulkit gravatar imagePulkit ( 2016-10-05 00:23:46 -0600 )edit