From 2badfc711f6d59bf63e415b512e2a83cd591ed9a Mon Sep 17 00:00:00 2001 From: Beat Buesser Date: Tue, 19 Dec 2023 15:15:37 +0100 Subject: [PATCH] Update test for XGBoost 2.x Signed-off-by: Beat Buesser --- tests/metrics/test_verification_decision_trees.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/metrics/test_verification_decision_trees.py b/tests/metrics/test_verification_decision_trees.py index 02ddef54b7..38296f3ab4 100644 --- a/tests/metrics/test_verification_decision_trees.py +++ b/tests/metrics/test_verification_decision_trees.py @@ -71,8 +71,8 @@ def test_XGBoost(self): x=self.x_test, y=self.y_test, eps_init=0.3, nb_search_steps=10, max_clique=2, max_level=2 ) - self.assertEqual(average_bound, 0.03186914062500001) - self.assertEqual(verified_error, 0.99) + self.assertAlmostEqual(average_bound, second=0.03335742187499999, places=6) + self.assertEqual(verified_error, second=0.99) def test_LightGBM(self): train_data = lightgbm.Dataset(self.x_train, label=np.argmax(self.y_train, axis=1))