Skip to content

Commit

Permalink
Merge pull request opencv#7880 from sovrasov:rtrees_disable_kfold
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Dec 16, 2016
2 parents 05b7385 + 2585393 commit a4a325f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ml/src/rtrees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ class RTreesImpl : public RTrees

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);
}

Expand Down

0 comments on commit a4a325f

Please sign in to comment.