Skip to content

Commit

Permalink
Update test for XGBoost 2.x
Browse files Browse the repository at this point in the history
Signed-off-by: Beat Buesser <[email protected]>
  • Loading branch information
beat-buesser committed Dec 19, 2023
1 parent 60a94f2 commit 2badfc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/metrics/test_verification_decision_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2badfc7

Please sign in to comment.