Skip to content

Commit

Permalink
fix self.degree at inference
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed May 8, 2024
1 parent 2c0c29c commit 663463c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mlsauce/booster/_booster_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def predict_proba(self, X, **kwargs):
if isinstance(X, pd.DataFrame):
X = X.values

if self.degree > 0:
if self.degree is not None:
X = self.poly_.transform(X)

if self.n_clusters > 0:
Expand Down
2 changes: 1 addition & 1 deletion mlsauce/booster/_booster_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def predict(self, X, level=95, method=None, **kwargs):
if isinstance(X, pd.DataFrame):
X = X.values

if self.degree > 0:
if self.degree is not None:
X = self.poly_.transform(X)

if self.n_clusters > 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'BSD3 Clause Clear'

__version__ = '0.18.3'
__version__ = '0.18.4'

VERSION = __version__

Expand Down

0 comments on commit 663463c

Please sign in to comment.