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
d2625a0d
Commit
d2625a0d
authored
Jan 26, 2013
by
Davis King
Browse files
made test more robust
parent
6e06b0bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dlib/test/sequence_labeler.cpp
dlib/test/sequence_labeler.cpp
+3
-3
No files found.
dlib/test/sequence_labeler.cpp
View file @
d2625a0d
...
...
@@ -416,8 +416,8 @@ namespace
trainer_part
.
set_c
(
4
);
trainer
.
set_num_threads
(
4
);
trainer_part
.
set_num_threads
(
4
);
trainer
.
set_epsilon
(
1e-
4
);
trainer_part
.
set_epsilon
(
1e-
4
);
trainer
.
set_epsilon
(
1e-
8
);
trainer_part
.
set_epsilon
(
1e-
8
);
...
...
@@ -429,7 +429,7 @@ namespace
dlog
<<
LINFO
<<
"max weight magnitude: "
<<
max
(
abs
(
labeler
.
get_weights
()));
// Both feature extractors should be equivalent.
DLIB_TEST
(
length
(
labeler
.
get_weights
()
-
labeler_part
.
get_weights
())
<
1e-
10
);
DLIB_TEST
(
max
(
abs
(
labeler
.
get_weights
()
-
labeler_part
.
get_weights
())
)
<
1e-
6
);
}
...
...
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