From 3741d82bd1ae020654d32b36d36378c4b3a011ac Mon Sep 17 00:00:00 2001 From: Qiang Gu Date: Sun, 24 Nov 2019 18:03:29 -0800 Subject: [PATCH] fix test error --- mlxtend/classifier/tests/test_stacking_classifier.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mlxtend/classifier/tests/test_stacking_classifier.py b/mlxtend/classifier/tests/test_stacking_classifier.py index e5c10f011..ad28ae8e9 100644 --- a/mlxtend/classifier/tests/test_stacking_classifier.py +++ b/mlxtend/classifier/tests/test_stacking_classifier.py @@ -522,7 +522,9 @@ def test_decision_function(): np.random.seed(123) # PassiveAggressiveClassifier has no predict_proba - meta = PassiveAggressiveClassifier(random_state=42) + meta = PassiveAggressiveClassifier(max_iter=1000, + tol=0.001, + random_state=42) clf1 = RandomForestClassifier(n_estimators=10) clf2 = GaussianNB() sclf = StackingClassifier(classifiers=[clf1, clf2],