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

Skip to content

MAINT add deprecation for transition to new developer API tools #30299

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

Merged
merged 9 commits into from
Nov 19, 2024

Conversation

glemaitre
Copy link
Member

@glemaitre glemaitre commented Nov 18, 2024

Partially address #30298

This PR avoid the breaking changes that we introduced by moving tools and changing the name.
Instead, it raises a deprecation warning to give a bit more time for user to adapt their code.

TODO

  • warn for _validate_data
  • warn for _check_feature_name
  • warn for _check_n_features

@glemaitre glemaitre marked this pull request as draft November 18, 2024 15:59
Copy link

github-actions bot commented Nov 18, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: a3dacb4. Link to the linter CI: here

@glemaitre glemaitre marked this pull request as ready for review November 18, 2024 17:08
@glemaitre
Copy link
Member Author

ping @ogrisel @adrinjalali @jeremiedbb

This part is quite easy and can be merged without the tags.
I'll get the tags piece by piece.

@adrinjalali
Copy link
Member

I also think one cycle is enough for these private methods.

@glemaitre
Copy link
Member Author

I'm not against this solution. We warn for 1.6, and we remove in 1.7.
This is a bit faster because we are on the side of the developer and we it gives 6 months to move ahead.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Since it's a deprecation of private methods I'm also fine with a 1 release cycle.

@glemaitre
Copy link
Member Author

Move the version of deprecation to 1.7. Enabling auto-merge.

@glemaitre glemaitre enabled auto-merge (squash) November 19, 2024 19:45
@glemaitre glemaitre disabled auto-merge November 19, 2024 19:53
@glemaitre glemaitre merged commit 4b116f0 into scikit-learn:main Nov 19, 2024
30 checks passed
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Dec 4, 2024
jeremiedbb pushed a commit that referenced this pull request Dec 6, 2024
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.

3 participants