-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FIX SplineTransformer.get_feature_names_out returns correct names for extrapolations=periodic #25296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX SplineTransformer.get_feature_names_out returns correct names for extrapolations=periodic #25296
Conversation
… extrapolations=periodic
kaqmak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I find the naming of n_spline confusing. I.e. sometimes it does refer to the shape of self.bsplines (self.bsplines_[0].c.shape[1]) as is seen in the transform method, while sometimes it refers to a modification of it (self.bsplines_[0].c.shape[1]-self.degree) as seen in the fit method.
glemaitre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the comment of @kaqmak. Otherwise LGTM.
Thanks @thomasjpfan
ogrisel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well (I trust the tests :).
… extrapolations=periodic (scikit-learn#25296) Co-authored-by: Olivier Grisel <[email protected]>
… extrapolations=periodic (scikit-learn#25296) Co-authored-by: Olivier Grisel <[email protected]>
… extrapolations=periodic (scikit-learn#25296) Co-authored-by: Olivier Grisel <[email protected]>
… extrapolations=periodic (#25296) Co-authored-by: Olivier Grisel <[email protected]>
Reference Issues/PRs
Fixes #25292
What does this implement/fix? Explain your changes.
This PR fixes
get_feature_names_outby adjustingn_splineswhenextrapolation="periodic".