From 098795cd1688d5efe7a65eb145cd09c3901436f8 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Sun, 1 May 2011 09:01:57 +0000 Subject: [PATCH] minor changes --- samples/cpp/points_classifier.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/cpp/points_classifier.cpp b/samples/cpp/points_classifier.cpp index 66aec92fe..acf01ab3a 100644 --- a/samples/cpp/points_classifier.cpp +++ b/samples/cpp/points_classifier.cpp @@ -24,7 +24,7 @@ vector classColors; #define SVM 0 // support vectors machine #define DT 1 // decision tree #define BT 0 // ADA Boost -#define GBT 1 // gradient boosted trees +#define GBT 0 // gradient boosted trees #define RF 0 // random forest #define ERT 0 // extremely randomized trees #define ANN 0 // artificial neural networks @@ -284,7 +284,7 @@ void find_decision_boundary_GBT() 0.05f, // shrinkage 0.6f, // subsample_portion 2, // max_depth - true // use_surrogates ) + false // use_surrogates ) ); gbtrees.train( trainSamples, CV_ROW_SAMPLE, trainClasses, Mat(), Mat(), var_types, Mat(), params ); @@ -555,31 +555,31 @@ int main() #if DT find_decision_boundary_DT(); - namedWindow( "DT", 1 ); + namedWindow( "DT", WINDOW_AUTOSIZE ); imshow( "DT", imgDst ); #endif #if BT find_decision_boundary_BT(); - namedWindow( "BT", 1 ); + namedWindow( "BT", WINDOW_AUTOSIZE ); imshow( "BT", imgDst); #endif #if GBT find_decision_boundary_GBT(); - namedWindow( "GBT", 1 ); + namedWindow( "GBT", WINDOW_AUTOSIZE ); imshow( "GBT", imgDst); #endif #if RF find_decision_boundary_RF(); - namedWindow( "RF", 1 ); + namedWindow( "RF", WINDOW_AUTOSIZE ); imshow( "RF", imgDst); #endif #if ERT find_decision_boundary_ERT(); - namedWindow( "ERT", 1 ); + namedWindow( "ERT", WINDOW_AUTOSIZE ); imshow( "ERT", imgDst); #endif