[mlpack] 03/05: Relax tolerances slightly.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Mon May 29 12:59:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit b7a175288b2266120283701f9231bf0f168682e8
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed May 24 10:27:00 2017 -0400
Relax tolerances slightly.
---
src/mlpack/tests/logistic_regression_test.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/tests/logistic_regression_test.cpp b/src/mlpack/tests/logistic_regression_test.cpp
index 5405b93..a46009f 100644
--- a/src/mlpack/tests/logistic_regression_test.cpp
+++ b/src/mlpack/tests/logistic_regression_test.cpp
@@ -778,7 +778,7 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionSparseLBFGSTest)
BOOST_REQUIRE_EQUAL(lr.Parameters().n_elem, lrSparse.Parameters().n_elem);
for (size_t i = 0; i < lr.Parameters().n_elem; ++i)
- BOOST_REQUIRE_CLOSE(lr.Parameters()[i], lrSparse.Parameters()[i], 1e-4);
+ BOOST_REQUIRE_CLOSE(lr.Parameters()[i], lrSparse.Parameters()[i], 1e-3);
}
/**
@@ -809,7 +809,7 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionSparseSGDTest)
BOOST_REQUIRE_EQUAL(lr.Parameters().n_elem, lrSparse.Parameters().n_elem);
for (size_t i = 0; i < lr.Parameters().n_elem; ++i)
- BOOST_REQUIRE_CLOSE(lr.Parameters()[i], lrSparse.Parameters()[i], 1e-5);
+ BOOST_REQUIRE_CLOSE(lr.Parameters()[i], lrSparse.Parameters()[i], 1e-3);
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list