Skip to content

API Deprecate paired_distances and paired_*_distances #26982

Description

@Micky774

Background

We have several public functions paired_*_distances which exist primarily as specialized implementations for the public paired_distances function. This function is thus either a wrapper around the specialized paired_*_distances or a simple iteration over the input data. During the drafting meeting, we discussed the deprecation of these functions. This discussion continued on a recent PR (start here). I wanted to open this to see if we could come to a quick consensus on our intent for the paired_* functions.

Personally, I definitely want to see paired_*_distances deprecated. I have no idea how widely used paired_distances is in practice. I believe @thomasjpfan has a better sense of this after some github searches. If it is not too widely used, I am also in favor of deprecating it as a whole.

As @adrinjalali mentioned (cf. comment) the paired_distances function is a really light function that most users ought to be able to write themselves. It doesn't really make sense for us to provide it for them...

cc: @scikit-learn/core-devs

Edit: Consensus is to deprecate both paired_*_distances and paired_distances

Activity

  1. changed the title [-]API Deprecate `paired_distances` and `paired_-_distances`[/-] [+]API Deprecate `paired_distances` and `paired_*_distances`[/+] on Aug 1, 2023
  2. jjerphan commented on Aug 4, 2023

    @jjerphan
    Member

    I am +1 regarding deprecating and removing paired_*_distances.

    I think we need to know if paired_distances is significantly used before taking any decision (I do not know any alternative to the global search of GitHub).

  3. adrinjalali commented on Aug 7, 2023

    @adrinjalali
    Member

    I'm in favor of deprecating them all, if too many users complain, we can reverse action, but the implementation is trivial, so we shouldn't have any issues removing them.

  4. Micky774 commented on Aug 8, 2023

    @Micky774
    ContributorAuthor

    @StefanieSenger this is a medium-scope task, in case you would be interested in taking it on. If not I can mark it as help wanted 😄

  5. added
    Moderate
    and removed on Aug 9, 2023
  6. Shreesha3112 commented on Aug 19, 2023

    @Shreesha3112
    Contributor

    Would like to open PR

  7. StefanieSenger commented on Aug 19, 2023

    @StefanieSenger
    Member

    Seen the ping only now. If there is something I can support you with, @Shreesha3112, please let me know. :)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIModeratehelp wantedmodule:metrics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions