[mlpack] 18/40: Fix issue that caused hanging tests: use the intended tolerance.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Feb 15 19:34:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit b40d8503e3de2fabc355327819868c1462c87e7c
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Jan 22 13:27:54 2016 -0500

    Fix issue that caused hanging tests: use the intended tolerance.
---
 src/mlpack/tests/sparse_coding_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/tests/sparse_coding_test.cpp b/src/mlpack/tests/sparse_coding_test.cpp
index b09215b..a97d34a 100644
--- a/src/mlpack/tests/sparse_coding_test.cpp
+++ b/src/mlpack/tests/sparse_coding_test.cpp
@@ -126,7 +126,7 @@ BOOST_AUTO_TEST_CASE(SparseCodingTestDictionaryStep)
   for (uword i = 0; i < nPoints; ++i)
     X.col(i) /= norm(X.col(i), 2);
 
-  SparseCoding sc(nAtoms, lambda1, 0.0, 0, 0.01, 1e-8);
+  SparseCoding sc(nAtoms, lambda1, 0.0, 0, 0.01, tol);
   mat Z;
   DataDependentRandomInitializer::Initialize(X, 25, sc.Dictionary());
   sc.Encode(X, Z);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list