Skip to content

Commit

Permalink
Disable training of RTrees when CVFolds > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Dec 16, 2016
1 parent bc7cbc1 commit 2585393
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 2585393

Please sign in to comment.