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
501e81eb
Commit
501e81eb
authored
Oct 30, 2010
by
P. Druzhkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gbtrees test
parent
969b9fb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
gbttest.cpp
tests/ml/src/gbttest.cpp
+3
-3
mltest_main.cpp
tests/ml/src/mltest_main.cpp
+0
-1
No files found.
tests/ml/src/gbttest.cpp
View file @
501e81eb
...
@@ -44,7 +44,7 @@ int _get_len(const CvMat* mat)
...
@@ -44,7 +44,7 @@ int _get_len(const CvMat* mat)
CV_GBTreesTest
::
CV_GBTreesTest
()
:
CV_GBTreesTest
::
CV_GBTreesTest
()
:
CvTest
(
"
CvGBTrees_test
"
,
CvTest
(
"
gbtrees
"
,
"all public methods (train, predict, save, load)"
)
"all public methods (train, predict, save, load)"
)
{
{
datasets
=
0
;
datasets
=
0
;
...
@@ -140,8 +140,8 @@ int CV_GBTreesTest::checkPredictError(int test_num)
...
@@ -140,8 +140,8 @@ int CV_GBTreesTest::checkPredictError(int test_num)
if
(
!
gtb
)
if
(
!
gtb
)
return
CvTS
::
FAIL_GENERIC
;
return
CvTS
::
FAIL_GENERIC
;
float
mean
[]
=
{
5.
3555
f
,
11.2241
f
,
11.9212
f
,
12.0848
f
};
float
mean
[]
=
{
5.
430247
f
,
13.5654
f
,
12.6569
f
,
13.1661
f
};
float
sigma
[]
=
{
0.
362127
f
,
3.4906
f
,
3.4906
f
,
3.6499
4
f
};
float
sigma
[]
=
{
0.
4162694
f
,
3.21161
f
,
3.43297
f
,
3.0062
4
f
};
float
current_error
=
gtb
->
calc_error
(
data
,
CV_TEST_ERROR
);
float
current_error
=
gtb
->
calc_error
(
data
,
CV_TEST_ERROR
);
...
...
tests/ml/src/mltest_main.cpp
View file @
501e81eb
...
@@ -48,7 +48,6 @@ const char* blacklist[] =
...
@@ -48,7 +48,6 @@ const char* blacklist[] =
"kmeans"
,
//ticket 616
"kmeans"
,
//ticket 616
"artrees"
,
//ticket 460
"artrees"
,
//ticket 460
"aboost"
,
//ticket 474
"aboost"
,
//ticket 474
"CvGBTrees_test"
,
//ticket 630
0
0
};
};
...
...
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