From 29dc196be362c8af44f36f331ac719d5a0e34acd Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 22 Feb 2016 19:21:53 +0100 Subject: [PATCH] Widen tolerance slightly. --- src/mlpack/tests/rmsprop_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlpack/tests/rmsprop_test.cpp b/src/mlpack/tests/rmsprop_test.cpp index bb556dc48c..3f95c558d6 100644 --- a/src/mlpack/tests/rmsprop_test.cpp +++ b/src/mlpack/tests/rmsprop_test.cpp @@ -29,9 +29,9 @@ BOOST_AUTO_TEST_CASE(SimpleRMSpropTestFunction) RMSprop optimizer(f, 1e-3, 0.99, 1e-8, 5000000, 1e-9, true); arma::mat coordinates = f.GetInitialPoint(); - double result = optimizer.Optimize(coordinates); + const double result = optimizer.Optimize(coordinates); - BOOST_REQUIRE_CLOSE(result, -1.0, 0.05); + BOOST_REQUIRE_CLOSE(result, (double) -1.0, 0.15); BOOST_REQUIRE_SMALL(coordinates[0], 1e-3); BOOST_REQUIRE_SMALL(coordinates[1], 1e-3); BOOST_REQUIRE_SMALL(coordinates[2], 1e-3);