[mlpack-git] master: Widen tolerance slightly. (29dc196)

gitdub at mlpack.org gitdub at mlpack.org
Mon Feb 22 13:21:53 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/4f4bd200d2617a5448c3377a732d7aaa8206e92a...29dc196be362c8af44f36f331ac719d5a0e34acd

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

commit 29dc196be362c8af44f36f331ac719d5a0e34acd
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Mon Feb 22 19:21:53 2016 +0100

    Widen tolerance slightly.


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

29dc196be362c8af44f36f331ac719d5a0e34acd
 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 bb556dc..3f95c55 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<SGDTestFunction> 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);




More information about the mlpack-git mailing list