From 976e1afe8fe7222d24b95db3e274012c565ce6a2 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 3 Sep 2019 09:42:20 -0400 Subject: [PATCH] Increase tolerance slightly. Sometimes we can get unlucky and L-BFGS won't optimize quite right. --- src/mlpack/tests/linear_svm_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/tests/linear_svm_test.cpp b/src/mlpack/tests/linear_svm_test.cpp index 41045d235c..e5e6a9528d 100644 --- a/src/mlpack/tests/linear_svm_test.cpp +++ b/src/mlpack/tests/linear_svm_test.cpp @@ -556,7 +556,7 @@ BOOST_AUTO_TEST_CASE(LinearSVMLBFGSTwoClasses) // Compare test accuracy to 1. const double testAcc = lsvm.ComputeAccuracy(data, labels); - BOOST_REQUIRE_CLOSE(testAcc, 1.0, 0.6); + BOOST_REQUIRE_CLOSE(testAcc, 1.0, 1.0); } /**