We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25cbaa commit 3eb9a65Copy full SHA for 3eb9a65
modules/ml/src/precomp.hpp
@@ -151,6 +151,11 @@ namespace ml
151
CV_Error( CV_StsOutOfRange,
152
"params.CVFolds should be =0 (the tree is not pruned) "
153
"or n>0 (tree is pruned using n-fold cross-validation)" );
154
+ if(val > 1)
155
+ CV_Error( CV_StsNotImplemented,
156
+ "tree pruning using cross-validation is not implemented."
157
+ "Set CVFolds to 1");
158
+
159
if( val == 1 )
160
val = 0;
161
CVFolds = val;
0 commit comments