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
b566d9a4
Commit
b566d9a4
authored
Sep 21, 2013
by
Davis King
Browse files
Made tests more robust
parent
10bd680f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dlib/test/optimization.cpp
dlib/test/optimization.cpp
+4
-2
No files found.
dlib/test/optimization.cpp
View file @
b566d9a4
...
...
@@ -1111,8 +1111,10 @@ namespace
rs
.
add
(
test_bound_solver_brown
(
rnd
,
search_strategy
));
dlog
<<
LINFO
<<
"mean brown gradient: "
<<
rs
.
mean
();
dlog
<<
LINFO
<<
"max brown gradient: "
<<
rs
.
max
();
DLIB_TEST
(
rs
.
mean
()
<
1e-6
);
DLIB_TEST
(
rs
.
max
()
<
1e-4
);
dlog
<<
LINFO
<<
"min brown gradient: "
<<
rs
.
min
();
DLIB_TEST
(
rs
.
mean
()
<
1e-5
);
DLIB_TEST
(
rs
.
max
()
<
1e-2
);
DLIB_TEST
(
rs
.
min
()
<
1e-10
);
dlog
<<
LINFO
<<
"test find_max_box_constrained() on neg_rosen"
;
rs
.
clear
();
...
...
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