Commit d2e5bea1 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Disable training of RTrees when CVFolds > 0

parent 75eeb25c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment