Robert Pollak
Robert Pollak

Reputation: 4165

OpenCV random forest: Setting a random seed

Since there is randomness involved in the computation of a random forest classifier, it is necessary to define a random seed to get reproducible results. How does one do this for OpenCV CvRTrees? I do not see such a parameter in CvRTParams.

Update: The API change of OpenCV 3 removed CvRTParams. However, the title question remains.

Upvotes: 3

Views: 846

Answers (1)

berak
berak

Reputation: 39806

it depends on the opencv version you are using.

Upvotes: 3

Related Questions