8000 FIX AdaBoost ZeroDivisionError in proba #7501 - tests corrected · scikit-learn/scikit-learn@e42d3ef · GitHub
[go: up one dir, main page]

Skip to content

Commit e42d3ef

Browse files
author
Dominik Krzeminski
committed
FIX AdaBoost ZeroDivisionError in proba #7501 - tests corrected
1 parent 42f478f commit e42d3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/ensemble/tests/test_weight_boosting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_oneclass_proba():
7878
# Test `predict_proba` robustness for one class label input.
7979
y_t = np.ones((len(X),))
8080
clf = AdaBoostClassifier().fit(X, y_t)
81-
assert_array_equal(clf.predict_proba(X), np.ones((X.shape[0], 1)))
81+
assert_array_equal(clf.predict_proba(X), np.ones((len(X), 1)))
8282

8383

8484
def test_classification_toy():

0 commit comments

Comments
 (0)
0