[mlpack] 15/44: Backport r17375.

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


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

bap pushed a commit to tag mlpack-1.0.11
in repository mlpack.

commit cf05ad9a89fb8690f430aa763fc3ce2d5b562b9c
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sun Dec 7 19:33:23 2014 +0000

    Backport r17375.
---
 src/mlpack/tests/nmf_test.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mlpack/tests/nmf_test.cpp b/src/mlpack/tests/nmf_test.cpp
index 5b95eae..71853de 100644
--- a/src/mlpack/tests/nmf_test.cpp
+++ b/src/mlpack/tests/nmf_test.cpp
@@ -53,9 +53,9 @@ BOOST_AUTO_TEST_CASE(NMFDefaultTest)
 
   mat wh = w * h;
 
-  // Make sure reconstruction error is not too high.  0.5% tolerance.
+  // Make sure reconstruction error is not too high.  1.5% tolerance.
   BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
-      0.012);
+      0.015);
 }
 
 /**
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(NMFAcolDistTest)
   mat wh = w * h;
 
   BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
-      0.012);
+      0.015);
 }
 
 /**
@@ -94,15 +94,15 @@ BOOST_AUTO_TEST_CASE(NMFRandomDivTest)
   size_t r = 12;
 
   AMF<SimpleResidueTermination,
-      RandomInitialization, 
+      RandomInitialization,
       NMFMultiplicativeDivergenceUpdate> nmf;
   nmf.Apply(v, r, w, h);
 
   mat wh = w * h;
 
-  // Make sure reconstruction error is not too high.  0.5% tolerance.
+  // Make sure reconstruction error is not too high.  1.5% tolerance.
   BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
-      0.012);
+      0.015);
 }
 
 /**

-- 
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