Skip to content

Commit 4846832

Browse files
committed
predict proba test
1 parent 9b9d081 commit 4846832

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stlearn/tests/test_stacking.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ def test_stacking_essentials():
9292

9393

9494
def test_sklearn_high_level():
95-
"""Test high-level sklearn API"""
95+
"""Test high-level sklearn API """
9696
stacking = StackingClassifier(
9797
estimators=[LogisticRegression() for _ in range(n_estimators)],
9898
feature_indices=feature_indices,
9999
stacking_estimator=LogisticRegression())
100100
assert_true(is_classifier(stacking))
101-
scores = cross_val_score(X=X_stacked, y=y, estimator=stacking)
101+
scores = cross_val_score(X=X_stacked, y=y, estimator=stacking,
102+
scoring='roc_auc')
102103
assert_equal(len(scores), 3)

0 commit comments

Comments
 (0)