[mlpack] 26/40: Widen tolerances; PositiveDefiniteConstraint seems to change things.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Feb 15 19:34:24 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 364f5871a9ed8b941bf0be6a4fd50023375dfc03
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Feb 1 09:28:18 2016 -0500

    Widen tolerances; PositiveDefiniteConstraint seems to change things.
---
 src/mlpack/tests/gmm_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/tests/gmm_test.cpp b/src/mlpack/tests/gmm_test.cpp
index 02e6ec9..0f02a85 100644
--- a/src/mlpack/tests/gmm_test.cpp
+++ b/src/mlpack/tests/gmm_test.cpp
@@ -212,17 +212,17 @@ BOOST_AUTO_TEST_CASE(GMMTrainEMMultipleGaussians)
     // Check the mean.
     for (size_t j = 0; j < dims; j++)
       BOOST_REQUIRE_CLOSE(gmm.Component(sortTry[i]).Mean()[j],
-          (means[sortRef[i]])[j], 1e-5);
+          (means[sortRef[i]])[j], 0.001);
 
     // Check the covariance.
     for (size_t row = 0; row < dims; row++)
       for (size_t col = 0; col < dims; col++)
         BOOST_REQUIRE_CLOSE(gmm.Component(sortTry[i]).Covariance()(row, col),
-            (covars[sortRef[i]])(row, col), 1e-5);
+            (covars[sortRef[i]])(row, col), 0.001);
 
     // Check the weight.
     BOOST_REQUIRE_CLOSE(gmm.Weights()[sortTry[i]], weights[sortRef[i]],
-        1e-5);
+        0.001);
   }
 }
 

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