Skip to content

MAINT cleanup utils.__init__: move masking tools into utils._mask #28515

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 3 commits into from
Feb 27, 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_mask being public I kept it importable from utils.
axis0_safe_slice and indices_to_mask are not listed and classes.rst and so assumed private, so I made them importable from utils._mask only.

Copy link

github-actions bot commented Feb 23, 2024

✔️ Linting Passed

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

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

@jeremiedbb
Copy link
Member Author

the coverage failure can be ignored since this PR is just moving badly covered code.

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.

LGTM. Thanks @jeremiedbb

thomasjpfan
thomasjpfan previously approved these changes Feb 27, 2024
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

LGTM

@thomasjpfan thomasjpfan dismissed their stale review February 27, 2024 14:55

Merge conflict

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

I pushed a commit to fix the merge conflicts. LGTM

@thomasjpfan thomasjpfan enabled auto-merge (squash) February 27, 2024 15:02
@thomasjpfan thomasjpfan merged commit cac6d4e into scikit-learn:main Feb 27, 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