From 5ae0bd99bcaff3e69b80333dcfb57388e3364f55 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Mon, 1 Feb 2016 10:23:06 -0800 Subject: [PATCH] Loosen tolerance further. This is better-tested than my last attempt and appears to have a very low failure rate. --- src/mlpack/tests/gmm_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/tests/gmm_test.cpp b/src/mlpack/tests/gmm_test.cpp index def7d4c849..83b9fd3f5b 100644 --- a/src/mlpack/tests/gmm_test.cpp +++ b/src/mlpack/tests/gmm_test.cpp @@ -211,7 +211,7 @@ BOOST_AUTO_TEST_CASE(GMMTrainEMMultipleGaussians) 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), 0.001); + (covars[sortRef[i]])(row, col), 0.05); // Check the weight. BOOST_REQUIRE_CLOSE(gmm.Weights()[sortTry[i]], weights[sortRef[i]],