-
-
Notifications
You must be signed in to change notification settings - Fork 55.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross validation in random forest doesn't work #6278
Comments
In fact the documentation of the RTree (http://docs.opencv.org/3.0-beta/modules/ml/doc/random_trees.html) claims the following:
So RTree is not designed to work with cross validation. In this case shall we just add an assertion to enforce CVFolds to be 0? |
That's right @ohnozzy . It is even in the original paper, my bad. |
If it shouldn't be changeable by design, can't this line just be removed:
|
But when I apply setCVFolds for DTrees, the method is also not implemented, why? |
Greetings.
Random forest training with number of folds different than
rtrees->setCVFolds(0)
, segfaults. Mentioned on answers.opencv.orgExample code
Please state the information for your system
In which part of the OpenCV library you got the issue?
ml module
Expected behaviour
The program should complete training
Actual behaviour
The text was updated successfully, but these errors were encountered: