Skip to content

Commit

Permalink
fix: allow sparse in DecayEstimator (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi authored Jan 13, 2025
1 parent fef86eb commit 9b15cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklego/meta/decay_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def fit(self, X, y):
"""

if self.check_input:
X, y = validate_data(self, X=X, y=y, dtype=FLOAT_DTYPES, reset=True)
X, y = validate_data(self, X=X, y=y, dtype=FLOAT_DTYPES, accept_sparse=True, reset=True)
else:
_check_n_features(self, X, reset=True)

Expand Down

0 comments on commit 9b15cef

Please sign in to comment.