Skip to content

Commit 58513a1

Browse files
committed
Back to previous test
1 parent a023e76 commit 58513a1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

tests/test_linearboost.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
from sklearn.utils.estimator_checks import parametrize_with_checks
1+
from sklearn.base import is_classifier
2+
23
from linearboost.linear_boost import LinearBoostClassifier
34

5+
from ._utils import check_estimator, get_expected_failed_tests
6+
47

5-
@parametrize_with_checks([LinearBoostClassifier()])
6-
def test_sklearn_compatible_estimator(estimator, check):
7-
check(estimator)
8+
def test_linear_boost_estimator():
9+
"""
10+
Test whether `LinearBoostClassifier` adheres to scikit-learn conventions.
11+
"""
12+
check_estimator(
13+
LinearBoostClassifier(),
14+
expected_failed_checks=get_expected_failed_tests(LinearBoostClassifier()),
15+
)
16+
assert is_classifier(LinearBoostClassifier)

0 commit comments

Comments
 (0)