Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #25292

What does this implement/fix? Explain your changes.

This PR fixes get_feature_names_out by adjusting n_splines when extrapolation="periodic".

Copy link

@kaqmak kaqmak left a 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.

Copy link
Member

@glemaitre glemaitre left a 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

Copy link
Member

@ogrisel ogrisel left a 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 :).

@ogrisel ogrisel enabled auto-merge (squash) January 18, 2023 17:25
@ogrisel ogrisel merged commit 55eaa4b into scikit-learn:main Jan 18, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 23, 2023
adrinjalali pushed a commit that referenced this pull request Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_feature_names_out not working on periodic SplineTransformers

4 participants