Skip to content

MAINT Handle deprecation of sokalmichener metric - #30004

Merged
glemaitre merged 4 commits into
scikit-learn:mainfrom
ogrisel:handle-deprecation-of-sokalmichener-metric
Oct 8, 2024
Merged

glemaitre merged 4 commits into
scikit-learn:mainfrom
ogrisel:handle-deprecation-of-sokalmichener-metric

Conversation

@ogrisel

@ogrisel ogrisel commented Oct 3, 2024

Copy link
Copy Markdown
Member

Closes #29925, #29995.

@ogrisel ogrisel changed the title Handle deprecation of sokalmichener metric MAINT Handle deprecation of sokalmichener metric Oct 3, 2024
@github-actions

github-actions Bot commented Oct 3, 2024 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 748bc68. Link to the linter CI: here

@ogrisel

ogrisel commented Oct 3, 2024

Copy link
Copy Markdown
Member Author

I don't think we added a changelog entry for similar cases in the past. The scikit-learn code does not really change as long as we do not drop support for scipy versions that removed some deprecated metrics (at which point we should deprecate the scikit-learn counterpart).

@ogrisel

ogrisel commented Oct 3, 2024 •

Copy link
Copy Markdown
Member Author

Or shall we deprecate the scikit-learn counterparts right away, even? If so, we would need a changelog entry.

For could do so in a follow-up PR to keep this PR minimal and fix scipy-dev CI asap.

If we go the deprecation route, we can deprecate the 3 scipy metrics at once (matching, kulsinski and sokalmichener).

@ogrisel
ogrisel requested a review from thomasjpfan October 3, 2024 15:49
@ogrisel

ogrisel commented Oct 4, 2024

Copy link
Copy Markdown
Member Author

The coverage is of the diff of this PR is expected to be low. I think this is ready to review.

/cc @lesteve

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Otherwise LGTM

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice that we already have one metric deprecated :)

@glemaitre

Copy link
Copy Markdown
Member

I think that we can merge this PR as is. Then, we can make another PR to announce the deprecation of SokalMichenerDistance and ask people to use RogersTanimotoDistance instead.

@glemaitre
glemaitre enabled auto-merge (squash) October 8, 2024 17:22
@glemaitre
glemaitre merged commit af57108 into scikit-learn:main Oct 8, 2024
@ogrisel
ogrisel deleted the handle-deprecation-of-sokalmichener-metric branch October 9, 2024 08:14
BenJourdan pushed a commit to gregoryschwartzman/scikit-learn that referenced this pull request Oct 11, 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.

Remove sokalmichener from distance metrics

3 participants