Skip to content

Commit

Permalink
fix histo Pt.9
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Oct 28, 2024
1 parent 3c32436 commit 4a530bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mlsauce/booster/_booster_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def fit(self, X, y, **kwargs):
if isinstance(X, pd.DataFrame):
X = X.values

if self.hist:
if self.hist == True:
X, self.hist_bins_ = get_histo_features(X)

if isinstance(y, pd.Series):
Expand Down Expand Up @@ -496,7 +496,7 @@ def predict_proba(self, X, **kwargs):
if isinstance(X, pd.DataFrame):
X = X.values

if self.hist:
if self.hist == True:
X = get_histo_features(X, bins=self.hist_bins_)

if self.degree is not None:
Expand Down
4 changes: 2 additions & 2 deletions mlsauce/booster/_booster_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def fit(self, X, y, **kwargs):
if isinstance(X, pd.DataFrame):
X = X.values

if self.hist:
if self.hist == True:
X, self.hist_bins_ = get_histo_features(X)

if isinstance(y, pd.Series):
Expand Down Expand Up @@ -360,7 +360,7 @@ def predict(self, X, level=95, method=None, histo=False, **kwargs):
if isinstance(X, pd.DataFrame):
X = X.values

if self.hist:
if self.hist == True:
X = get_histo_features(X, bins=self.hist_bins_)

if self.degree is not None:
Expand Down

0 comments on commit 4a530bb

Please sign in to comment.