Skip to content

Commit 2badfc7

Browse files
committed
Update test for XGBoost 2.x
Signed-off-by: Beat Buesser <[email protected]>
1 parent 60a94f2 commit 2badfc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/metrics/test_verification_decision_trees.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def test_XGBoost(self):
7171
x=self.x_test, y=self.y_test, eps_init=0.3, nb_search_steps=10, max_clique=2, max_level=2
7272
)
7373

74-
self.assertEqual(average_bound, 0.03186914062500001)
75-
self.assertEqual(verified_error, 0.99)
74+
self.assertAlmostEqual(average_bound, second=0.03335742187499999, places=6)
75+
self.assertEqual(verified_error, second=0.99)
7676

7777
def test_LightGBM(self):
7878
train_data = lightgbm.Dataset(self.x_train, label=np.argmax(self.y_train, axis=1))

0 commit comments

Comments
 (0)