First time here? Check out the FAQ!

Ask Your Question
0

Random Forest predict_prob in OpenCV 3.0

asked Nov 9 '15

prox gravatar image

Hi,

I'm looking for the predict probability functionality for binary classification task present in 2.x releases. As far as I see it is gone, is there a tendency towards getting it back?

Best regards, chris

Preview: (hide)

Comments

1

Hi @prox, have you found a solution for your problem? If so, I would be thankful if you please share it with us. Thanks

mask2007 gravatar imagemask2007 (Feb 4 '16)edit

1 answer

Sort by » oldest newest most voted
2

answered Nov 9 '15

thdrksdfthmn gravatar image

I would suggest you to use StatModel::load<RTrees>(filename); and then use the predict of the StatModel::predict.

Preview: (hide)

Comments

But instead of the pure class value I would like to have the probability of the sample(s) being part of the first class, as long as it is a 2-Class problem.

In recent version we had Random Forests' predict_prob method to do so which I am missing in latest version.

prox gravatar imageprox (Nov 10 '15)edit

Uh, I did not know about it... Actually it is sad that it's not anymore in OpenCV 3 :(

thdrksdfthmn gravatar imagethdrksdfthmn (Nov 10 '15)edit

Question Tools

1 follower

Stats

Asked: Nov 9 '15

Seen: 500 times

Last updated: Nov 09 '15