Skip to content

Commit 55cb337

Browse files
author
Beat Buesser
committed
Update test related to LightGBM
Signed-off-by: Beat Buesser <[email protected]>
1 parent 09eb16c commit 55cb337

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/estimators/classification/test_lightgbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def setUpClass(cls):
4848

4949
def test_predict(self):
5050
y_predicted = self.classifier.predict(self.x_test_iris[0:1])
51-
y_expected = np.asarray([[0.14644158, 0.16454982, 0.68900861]])
51+
y_expected = np.asarray([[0.1083, 0.1255, 0.7663]])
5252
np.testing.assert_array_almost_equal(y_predicted, y_expected, decimal=4)
5353

5454

tests/metrics/test_verification_decision_trees.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def test_LightGBM(self):
103103
x=self.x_test, y=self.y_test, eps_init=0.3, nb_search_steps=10, max_clique=2, max_level=2
104104
)
105105

106-
self.assertEqual(average_bound, 0.07634765624999999)
107-
self.assertEqual(verified_error, 0.85)
106+
self.assertEqual(average_bound, 0.047742187500000005)
107+
self.assertEqual(verified_error, 0.94)
108108

109109
def test_GradientBoosting(self):
110110
model = GradientBoostingClassifier(n_estimators=4, max_depth=6)

0 commit comments

Comments
 (0)