Skip to content

Remove sokalmichener from distance metrics #29925

Closed

Description

@thomasjpfan

SciPy is planning to remove sokalmichener: scipy/scipy#21572

We reimplement SokalMichenerDistance in the distance metric, and it's exactly the same as the implementation RogersTanimotoDistance. We can follow SciPy's lead and remove sokalmichener as well.

REF:

cdef class RogersTanimotoDistance{{name_suffix}}(DistanceMetric{{name_suffix}}):

cdef class SokalMichenerDistance{{name_suffix}}(DistanceMetric{{name_suffix}}):

Activity

  1. fancidev commented on Sep 25, 2024

    @fancidev

    Thanks for opening the issue. Let me share more background from SciPy’s side.

    The details are explained in scipy/scipy#2011. In short, the two problems with sokalmichener are that (1) its implementation is equivalent to rogerstanimoto, and (2) the standard definition is equivalent to matching.

    The reason for deprecating the function, rather than changing its behavior, is to force the end user to make an informed choice (for rogerstanimoto or for matching).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions