1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge pull request #9581 from sovrasov:rtree_disable_cv

This commit is contained in:
Vadim Pisarevsky
2017-09-13 13:20:52 +00:00
+5
View File
@@ -151,6 +151,11 @@ namespace ml
CV_Error( CV_StsOutOfRange,
"params.CVFolds should be =0 (the tree is not pruned) "
"or n>0 (tree is pruned using n-fold cross-validation)" );
if(val > 1)
CV_Error( CV_StsNotImplemented,
"tree pruning using cross-validation is not implemented."
"Set CVFolds to 1");
if( val == 1 )
val = 0;
CVFolds = val;