Skip to content

MAINT Deprecate utils.extmath.safe_min #14554

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 5 commits into from
Aug 2, 2019

Conversation

rth
Copy link
Member

@rth rth commented Aug 2, 2019

utils.extmath.safe_min implements a min function that also works for sparse arrays, however it should no longer be necessary with the scipy versions we support.

Co-Authored-By: jeremiedbb <34657725+jeremiedbb@users.noreply.github.com>
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.

Indeed, it's available since 0.13. LGTM.

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.

Add to whats new and the Recently deprecated section of docs/modules/classes.rst?

@rth
Copy link
Member Author

rth commented Aug 2, 2019

Add to whats new and the Recently deprecated section of docs/modules/classes.rst?

It's not documented, and therefore I would consider it private (#12927). The deprecation warning is there just to be nice. On a related topic @amueller recently proposed to move these to private import paths without deprecation in #6616 (comment)

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.

Nitpicks

rth and others added 2 commits August 2, 2019 18:06
Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
@thomasjpfan thomasjpfan merged commit e3fe559 into scikit-learn:master Aug 2, 2019
@rth rth deleted the rm-safe-min branch August 2, 2019 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants