Skip to content

Commit

Permalink
Fix future warning by avoiding importing of private modules (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed May 5, 2020
1 parent 91dbb6e commit 0b2a93d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from lightning.impl.base import BaseClassifier as LightBaseClassifier
from sklearn import datasets
from sklearn.base import BaseEstimator, RegressorMixin, clone
from sklearn.ensemble import forest
from sklearn.ensemble._forest import ForestClassifier
from sklearn.utils import shuffle
from sklearn.linear_model.base import LinearClassifierMixin
from sklearn.linear_model._base import LinearClassifierMixin
from sklearn.tree import DecisionTreeClassifier
from sklearn.svm import SVC, NuSVC
from xgboost import XGBClassifier
Expand Down Expand Up @@ -129,7 +129,7 @@ def __call__(self, estimator):
y_pred = estimator.predict_proba(self.X_test.astype(np.float32))
elif isinstance(
estimator,
(forest.ForestClassifier, XGBClassifier, LGBMClassifier)):
(ForestClassifier, XGBClassifier, LGBMClassifier)):
y_pred = estimator.predict_proba(self.X_test)
else:
y_pred = estimator.predict(self.X_test)
Expand Down

0 comments on commit 0b2a93d

Please sign in to comment.