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
a67c7c73
Commit
a67c7c73
authored
Oct 19, 2013
by
Davis King
Browse files
Slightly tweaked PSI validation test again
parent
de361671
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/svm/structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+4
-4
No files found.
dlib/svm/structural_svm_object_detection_problem.h
View file @
a67c7c73
...
@@ -411,10 +411,10 @@ namespace dlib
...
@@ -411,10 +411,10 @@ 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
)
*
std
::
max
(
psi_score
,
total_score
)
<
1e-5
,
DLIB_ASSERT
(
std
::
abs
(
psi_score
-
total_score
)
<=
1e-5
*
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
relative
error: "
<<
std
::
abs
(
psi_score
-
total_score
)
*
std
::
max
(
psi_score
,
total_score
)
<<
"
\n\t
error:
"
<<
std
::
abs
(
psi_score
-
total_score
)
<<
"
\n\t
psi_score: "
<<
psi_score
<<
"
\n\t
psi_score: "
<<
psi_score
<<
"
\n\t
total_score: "
<<
total_score
<<
"
\n\t
total_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