Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
098795cd
Commit
098795cd
authored
May 01, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
23a9b7bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
points_classifier.cpp
samples/cpp/points_classifier.cpp
+7
-7
No files found.
samples/cpp/points_classifier.cpp
View file @
098795cd
...
...
@@ -24,7 +24,7 @@ vector<Scalar> 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.05
f
,
// shrinkage
0.6
f
,
// subsample_portion
2
,
// max_depth
tru
e
// use_surrogates )
fals
e
// 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment