Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
a1c3b067
"git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "be8f6538881e110c854be2720b0575324159bac9"
Commit
a1c3b067
authored
May 13, 2017
by
Davis King
Browse files
Added more outputs to unit test error message.
parent
32a96ddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dlib/test/opt_qp_solver.cpp
dlib/test/opt_qp_solver.cpp
+5
-2
No files found.
dlib/test/opt_qp_solver.cpp
View file @
a1c3b067
...
...
@@ -289,7 +289,7 @@ namespace
matrix
<
double
,
0
,
1
>
alpha
(
3
),
d
(
3
),
lambda
;
alpha
=
C
/
2
,
C
/
2
,
0
;
solve_qp4_using_smo
(
A
,
tmp
(
trans
(
A
)
*
A
),
b
,
d
,
alpha
,
lambda
,
1e-9
,
3000
);
unsigned
long
iters
=
solve_qp4_using_smo
(
A
,
tmp
(
trans
(
A
)
*
A
),
b
,
d
,
alpha
,
lambda
,
1e-9
,
3000
);
matrix
<
double
,
0
,
1
>
w
=
lowerbound
(
-
A
*
alpha
,
0
);
dlog
<<
LINFO
<<
"*******************************************************"
;
...
...
@@ -303,7 +303,10 @@ namespace
dlog
<<
LINFO
<<
"computed obj: "
<<
computed_obj
;
dlog
<<
LINFO
<<
"with true w obj: "
<<
true_obj
;
DLIB_TEST_MSG
(
abs
(
computed_obj
-
true_obj
)
<
1e-8
,
abs
(
computed_obj
-
true_obj
));
DLIB_TEST_MSG
(
abs
(
computed_obj
-
true_obj
)
<
1e-8
,
"computed_obj: "
<<
computed_obj
<<
" true_obj: "
<<
true_obj
<<
" delta: "
<<
abs
(
computed_obj
-
true_obj
)
<<
" iters: "
<<
iters
);
}
void
test_qp4_test7
()
...
...
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