Commit ef081101 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #7880 from sovrasov:rtrees_disable_kfold

parents 862c3aa6 d2e5bea1
......@@ -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