Skip to content
Snippets Groups Projects
Commit 4a39c991 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: implement cvfold setter, even if it is not exposed in the ML model...

BUG: implement cvfold setter, even if it is not exposed in the ML model because it is a pure virtual method in openCV
parent 9d6a7426
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,8 @@ public:
OTB_CV_WRAP_PROPERTY(int, MinSampleCount)
OTB_CV_WRAP_PROPERTY(bool, UseSurrogates)
// warning: CV fold crash in openCV 3
OTB_CV_WRAP_PROPERTY(int, CVFolds)
OTB_CV_WRAP_PROPERTY(bool, Use1SERule)
OTB_CV_WRAP_PROPERTY(bool, TruncatePrunedTree)
OTB_CV_WRAP_PROPERTY(float, RegressionAccuracy)
......
......@@ -145,6 +145,7 @@ OTB_CV_WRAP_IMPL(int, MaxCategories)
OTB_CV_WRAP_IMPL(int, MaxDepth)
OTB_CV_WRAP_IMPL(int, MinSampleCount)
OTB_CV_WRAP_IMPL(bool, UseSurrogates)
OTB_CV_WRAP_IMPL(int, CVFolds)
OTB_CV_WRAP_IMPL(bool, Use1SERule)
OTB_CV_WRAP_IMPL(bool, TruncatePrunedTree)
OTB_CV_WRAP_IMPL(float, RegressionAccuracy)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment