Merge pull request #7880 from sovrasov:rtrees_disable_kfold

This commit is contained in:
Alexander Alekhin
2016-12-16 16:46:57 +00:00
+2
View File
@@ -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);
}