Skip to content

API Remove sklearn.metrics.manhattan_distances option sum_over_features #24630

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 6 commits into from
Oct 14, 2022

Conversation

rusdes
Copy link
Contributor

@rusdes rusdes commented Oct 10, 2022

Reference Issues/PRs

Fixes #24597.

What does this implement/fix? Explain your changes.

This PR deprecates sum_over_features parameter in sklearn.metrics.manhattan_distances.
Launched:

pytest sklearn/metrics/tests/test_pairwise.py -v -k test_manhattan_distances_deprecated_sum_over_features

and all tests pass with 0 warnings.

Also,

pytest sklearn/metrics/tests/test_pairwise.py -v -k test_pairwise_distances_argmin_min

fails. I think it's due to one of the recent merges and is worth looking into.

@rusdes rusdes changed the title Deprec sum API Remove sklearn.metrics.manhattan_distances option sum_over_features Oct 10, 2022
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.

Thanks for the PR @rusdes. Here are a few suggestions

@rusdes
Copy link
Contributor Author

rusdes commented Oct 14, 2022

@jeremiedbb Thanks for the suggestions. Let me know if anything else is missing.

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. Thanks @rusdes

@jeremiedbb jeremiedbb added this to the 1.2 milestone Oct 14, 2022
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! Thank you very much for the contrib!

@ogrisel ogrisel merged commit 7cf938c into scikit-learn:main Oct 14, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Oct 31, 2022
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.

Remove sum_over_features from sklearn.metrics.manhattan_distances
3 participants