Skip to content

Commit

Permalink
Use check_estimators_pickle
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-oHr-N committed Feb 20, 2020
1 parent f3996fe commit ed7bf56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from sklearn.model_selection import train_test_split

# from sklearn.utils.estimator_checks import check_estimator
from sklearn.utils.estimator_checks import check_estimators_pickle
from sklearn.utils.estimator_checks import check_set_params

from optgbm.sklearn import OGBMClassifier
Expand Down Expand Up @@ -48,6 +49,7 @@ def test_ogbm_classifier() -> None:

# check_estimator(clf)

check_estimators_pickle(name, clf)
check_set_params(name, clf)


Expand All @@ -57,6 +59,7 @@ def test_ogbm_regressor() -> None:

# check_estimator(reg)

check_estimators_pickle(name, reg)
check_set_params(name, reg)


Expand Down

0 comments on commit ed7bf56

Please sign in to comment.