Skip to content

Commit 7143a91

Browse files
authored
[ML] Tweak CBoostedTreeTest.testLogisticRegression test threshold further
The older version of clang used on the 7.x El Capitan reference build server creates an actual value of 0.51796218392671234, so increase the threshold to 0.52 Backport of elastic#887
1 parent 6565f4f commit 7143a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/maths/unittest/CBoostedTreeTest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ BOOST_AUTO_TEST_CASE(testLogisticRegression) {
11361136

11371137
LOG_DEBUG(<< "mean log relative error = "
11381138
<< maths::CBasicStatistics::mean(meanLogRelativeError));
1139-
BOOST_TEST_REQUIRE(maths::CBasicStatistics::mean(meanLogRelativeError) < 0.51);
1139+
BOOST_TEST_REQUIRE(maths::CBasicStatistics::mean(meanLogRelativeError) < 0.52);
11401140
}
11411141

11421142
BOOST_AUTO_TEST_CASE(testUnbalancedClasses) {

0 commit comments

Comments
 (0)