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
ba29493a
"model/git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "fbd82ba5bb35c42a6b09f5bd50ff1aa0690b9626"
Commit
ba29493a
authored
Feb 06, 2018
by
Davis King
Browse files
Make test more robust
parent
95bce7a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/test/global_optimization.cpp
dlib/test/global_optimization.cpp
+2
-2
No files found.
dlib/test/global_optimization.cpp
View file @
ba29493a
...
...
@@ -208,7 +208,7 @@ namespace
result
=
find_max_global
([](
double
a
,
double
b
){
return
-
complex_holder_table
(
a
,
b
);},
{
-
10
,
-
10
},
{
10
,
10
},
max_function_calls
(
3
00
),
0
);
{
-
10
,
-
10
},
{
10
,
10
},
max_function_calls
(
4
00
),
0
);
dlog
<<
LINFO
<<
"complex_holder_table y: "
<<
result
.
y
;
DLIB_TEST_MSG
(
std
::
abs
(
result
.
y
-
21.9210397
)
<
0.0001
,
std
::
abs
(
result
.
y
-
21.9210397
));
}
...
...
@@ -269,7 +269,7 @@ namespace
result
=
find_min_global
([](
double
a
,
double
b
){
return
complex_holder_table
(
a
,
b
);},
{
-
10
,
-
10
},
{
10
,
10
},
max_function_calls
(
3
00
),
0
);
{
-
10
,
-
10
},
{
10
,
10
},
max_function_calls
(
4
00
),
0
);
dlog
<<
LINFO
<<
"complex_holder_table y: "
<<
result
.
y
;
DLIB_TEST_MSG
(
std
::
abs
(
result
.
y
+
21.9210397
)
<
0.0001
,
std
::
abs
(
result
.
y
+
21.9210397
));
}
...
...
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