Widen tolerance slightly.

This commit is contained in:
marcus
2016-02-22 19:21:53 +01:00
parent d765779ba6
commit 29dc196be3
+2 -2
View File
@@ -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);