Disable training of RTrees when CVFolds > 0

pull/7880/head
Vladislav Sovrasov 8 years ago
parent 75eeb25c1e
commit d2e5bea1fb
  1. 2
      modules/ml/src/rtrees.cpp

@ -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…
Cancel
Save