Adjust tolerances for SPALeRA test to avoid random failures.

This commit is contained in:
Ryan Curtin
2017-12-22 10:41:10 -05:00
parent e3afe032d2
commit 73f9d96757
+2 -2
View File
@@ -79,10 +79,10 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionTest)
// Ensure that the error is close to zero.
const double acc = lr.ComputeAccuracy(data, responses);
BOOST_REQUIRE_CLOSE(acc, 100.0, 0.3); // 0.3% error tolerance.
BOOST_REQUIRE_CLOSE(acc, 100.0, 0.5); // 0.5% error tolerance.
const double testAcc = lr.ComputeAccuracy(testData, testResponses);
BOOST_REQUIRE_CLOSE(testAcc, 100.0, 0.6); // 0.6% error tolerance.
BOOST_REQUIRE_CLOSE(testAcc, 100.0, 0.8); // 0.8% error tolerance.
}
}