Skip to content

MAINT cleanup utils.__init__: move safe_sqr and _approximate_mode into extmath #28481

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 2 commits into from
Feb 21, 2024

Conversation

jeremiedbb
Copy link
Member

extracted from #26686 to ease the reviews. The end goal is to clean the utils.__init__.py module as explained in the linked PR.

safe_sqr is listed in classes.rst so we can't assume it's private and I kept it importable from utils to not break existing code.
_approximate_mode is private so is now only available from utils.extmath.

Copy link

github-actions bot commented Feb 20, 2024

✔️ Linting Passed

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

Generated for commit: 3987b0b. Link to the linter CI: here

Copy link
Contributor

@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @jeremiedbb

@OmarManzoor OmarManzoor added the Waiting for Second Reviewer First reviewer is done, need a second one! label Feb 21, 2024
@lesteve lesteve merged commit f323eb4 into scikit-learn:main Feb 21, 2024
@lesteve
Copy link
Member

lesteve commented Feb 21, 2024

Merging thanks!

@reshamas reshamas removed the Waiting for Second Reviewer First reviewer is done, need a second one! label Mar 8, 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.

4 participants