opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

CvRTrees: setting a random seed

Open opencv-pushbot opened this issue 9 years ago • 0 comments

Transferred from http://code.opencv.org/issues/3928

|| Robert Pollak on 2014-09-29 11:59
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: ml
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: Any / Any

CvRTrees: setting a random seed

It is necessary to define different random seeds for stability analysis. However, since Vadim's ml refactoring (commit ba3783 from July) rtrees.cpp does not use the global cv::theRNG() any more. A local instance is used instead, which is seeded with a constant value.

(See the "corresponding stackoverflow question":https://stackoverflow.com/questions/26054985/opencv-random-forest-setting-a-random-seed .)

History

Maksim Shabunin on 2015-04-29 09:34
-   Target version set to 3.0

opencv-pushbot avatar Jul 27 '15 10:07 opencv-pushbot