Skip to content

Commit

Permalink
Merge f085588 into d73048e
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed May 5, 2020
2 parents d73048e + f085588 commit 330865f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/utils.py
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 @@ -120,7 +120,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 330865f

Please sign in to comment.