mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Disable training of RTrees when CVFolds > 0
This commit is contained in:
parent
75eeb25c1e
commit
d2e5bea1fb
@ -382,6 +382,8 @@ public:
|
||||
|
||||
bool train( const Ptr<TrainData>& trainData, int flags )
|
||||
{
|
||||
if (impl.getCVFolds() != 0)
|
||||
CV_Error(Error::StsBadArg, "Cross validation for RTrees is not implemented");
|
||||
return impl.train(trainData, flags);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user