[mlpack-git] master: Widen tolerance for norm difference, and tweak parameters a little bit. (6d46f1d)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:04:34 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 6d46f1d0fbca0e43897e9863edbda2d2706c520e
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Dec 3 02:44:41 2014 +0000

    Widen tolerance for norm difference, and tweak parameters a little bit.


>---------------------------------------------------------------

6d46f1d0fbca0e43897e9863edbda2d2706c520e
 src/mlpack/tests/svd_batch_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/tests/svd_batch_test.cpp b/src/mlpack/tests/svd_batch_test.cpp
index 95db81e..a845899 100644
--- a/src/mlpack/tests/svd_batch_test.cpp
+++ b/src/mlpack/tests/svd_batch_test.cpp
@@ -160,14 +160,14 @@ BOOST_AUTO_TEST_CASE(SVDBatchNegativeElementTest)
       RandomInitialization,
       SVDBatchLearning> amf(SimpleToleranceTermination<mat>(),
                             RandomInitialization(),
-                            SVDBatchLearning(0.3, 0.001, 0.001, 0));
+                            SVDBatchLearning(0.1, 0.001, 0.001, 0));
   mat m1, m2;
   amf.Apply(test, 3, m1, m2);
 
   arma::mat result = m1 * m2;
 
-  // 2% tolerance on the norm.
-  BOOST_REQUIRE_CLOSE(arma::norm(test, "fro"), arma::norm(result, "fro"), 2.0);
+  // 5% tolerance on the norm.
+  BOOST_REQUIRE_CLOSE(arma::norm(test, "fro"), arma::norm(result, "fro"), 5.0);
 }
 
 BOOST_AUTO_TEST_SUITE_END();



More information about the mlpack-git mailing list