Ask Your Question
0

Has anyone used OpenCV for implementing RANDOM FOREST algorithm ?

asked 2017-10-14 01:17:59 -0600

I want to implement random forest and XGBoost algorithm using OpenCV in python. Can, anyone provide details on it ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-14 01:38:59 -0600

updated 2017-10-14 01:49:07 -0600

OpenCV already offers an API that performs this. Its called Random Trees. Here's a sample for it in C++ which shouldn't be hard to convert to Python

edit flag offensive delete link more

Comments

Thank You very much, for your reply. Is there any API for XGBoost Algorithm as well ?

research scholar gravatar imageresearch scholar ( 2017-10-14 01:41:41 -0600 )edit

you can also use RTrees and Boost from python

(and there was a gradient boost version in 2.4, but it never got backported/reactivated to c++/python)

berak gravatar imageberak ( 2017-10-14 01:59:48 -0600 )edit
2

No random forest in opencv (but random trees) may be because :An extension of the algorithm was developed by Leo Breiman[7] and Adele Cutler,[8] and "Random Forests" is their trademark.[9]

LBerger gravatar imageLBerger ( 2017-10-14 02:20:22 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-10-14 01:17:59 -0600

Seen: 227 times

Last updated: Oct 14 '17