Commit 42cd061a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #9581 from sovrasov:rtree_disable_cv

parents d9e364f3 3eb9a655
...@@ -151,6 +151,11 @@ namespace ml ...@@ -151,6 +151,11 @@ namespace ml
CV_Error( CV_StsOutOfRange, CV_Error( CV_StsOutOfRange,
"params.CVFolds should be =0 (the tree is not pruned) " "params.CVFolds should be =0 (the tree is not pruned) "
"or n>0 (tree is pruned using n-fold cross-validation)" ); "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 ) if( val == 1 )
val = 0; val = 0;
CVFolds = val; CVFolds = val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment