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
c79d412c
Commit
c79d412c
authored
May 13, 2016
by
Davis King
Browse files
slightly relaxed tests to avoid false failure
parent
022dce43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/test/cca.cpp
dlib/test/cca.cpp
+2
-2
No files found.
dlib/test/cca.cpp
View file @
c79d412c
...
...
@@ -125,7 +125,7 @@ namespace
const
double
trans_error
=
max
(
abs
(
L
*
Ltrans
-
R
*
Rtrans
));
dlog
<<
LINFO
<<
"trans_error: "
<<
trans_error
;
DLIB_TEST
(
trans_error
<
1e-
10
);
DLIB_TEST
(
trans_error
<
1e-
9
);
}
{
correlations
=
cca
(
mat_to_sparse
(
L
),
mat_to_sparse
(
R
),
Ltrans
,
Rtrans
,
min
(
m
,
n
),
max
(
n
,
n2
)
+
6
,
4
);
...
...
@@ -139,7 +139,7 @@ namespace
dlog
<<
LINFO
<<
"correlation error: "
<<
corr_error
;
DLIB_TEST_MSG
(
corr_error
<
1e-13
,
Ltrans
<<
"
\n\n
"
<<
Rtrans
);
DLIB_TEST
(
trans_error
<
1e-
10
);
DLIB_TEST
(
trans_error
<
1e-
9
);
}
dlog
<<
LINFO
<<
"*****************************************************"
;
...
...
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