From c6cc8e7435d90ffe13975a462a093e6ac7618bfd Mon Sep 17 00:00:00 2001 From: Marcus Edel Date: Wed, 20 Oct 2021 10:28:42 -0400 Subject: [PATCH] Adjust threshold to improve test stability. --- 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 8c3b0241ca..3df2ecbaa7 100644 --- a/src/mlpack/tests/gmm_test.cpp +++ b/src/mlpack/tests/gmm_test.cpp @@ -750,17 +750,17 @@ TEST_CASE("UseExistingModelTest", "[GMMTest]") // Check for similarity. for (size_t i = 0; i < gmm.Gaussians(); ++i) { - REQUIRE(gmm.Weights()[i] == Approx(oldgmm.Weights()[i]).epsilon(1e-6)); + REQUIRE(gmm.Weights()[i] == Approx(oldgmm.Weights()[i]).epsilon(1e-4)); for (size_t j = 0; j < gmm.Dimensionality(); ++j) { REQUIRE(gmm.Component(i).Mean()[j] == - Approx(oldgmm.Component(i).Mean()[j]).epsilon(1e-5)); + Approx(oldgmm.Component(i).Mean()[j]).epsilon(1e-4)); for (size_t k = 0; k < gmm.Dimensionality(); ++k) { REQUIRE(gmm.Component(i).Covariance()(j, k) == - Approx(oldgmm.Component(i).Covariance()(j, k)).epsilon(1e-5)); + Approx(oldgmm.Component(i).Covariance()(j, k)).epsilon(1e-4)); } } }