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
258d4bed
"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "80de340d861d1f23eade25da4f6ce73393e55b47"
Commit
258d4bed
authored
Oct 21, 2013
by
Davis King
Browse files
Tweaked the PSI validation test again
parent
01175882
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/svm/structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+1
-1
No files found.
dlib/svm/structural_svm_object_detection_problem.h
View file @
258d4bed
...
@@ -411,7 +411,7 @@ namespace dlib
...
@@ -411,7 +411,7 @@ namespace dlib
#ifdef ENABLE_ASSERTS
#ifdef ENABLE_ASSERTS
const
double
psi_score
=
dot
(
psi
,
current_solution
);
const
double
psi_score
=
dot
(
psi
,
current_solution
);
DLIB_ASSERT
(
std
::
abs
(
psi_score
-
total_score
)
<=
1e-
5
*
std
::
max
(
std
::
abs
(
psi_score
),
std
::
abs
(
total_score
)),
DLIB_
C
ASSERT
(
std
::
abs
(
psi_score
-
total_score
)
<=
1e-
6
*
std
::
max
(
1.0
,
std
::
max
(
std
::
abs
(
psi_score
),
std
::
abs
(
total_score
))
)
,
"
\t
The get_feature_vector() and detect() methods of image_scanner_type are not in sync."
"
\t
The get_feature_vector() and detect() methods of image_scanner_type are not in sync."
<<
"
\n\t
The relative error is too large to be attributed to rounding error."
<<
"
\n\t
The relative error is too large to be attributed to rounding error."
<<
"
\n\t
error: "
<<
std
::
abs
(
psi_score
-
total_score
)
<<
"
\n\t
error: "
<<
std
::
abs
(
psi_score
-
total_score
)
...
...
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