Skip to content

linear_assignment can now be imported from scipy #13464

Closed

Description

@jnothman

sklearn.utils.linear_assignment_ can be replaced by scipy.optimize.linear_sum_assignment now that scipy >= 0.17 is required by scikit-learn.

The sklearn.utils.linear_assignment_ module should be deprecated to be removed in 0.23 (assuming this issue gets fixed before 0.21's release).

Activity

  1. added
    Easy
    good first issue
    on Mar 18, 2019
  2. okz12 commented on Mar 19, 2019

    @okz12
    Contributor

    I'd like to take this up if no one else is assigned to it. It'll be my first issue. My approach would be to search through the codebase for the imports and refactor the code to use scipy. And then remove the sklearn function from the codebase.

  3. okz12 commented on Mar 19, 2019

    @okz12
    Contributor

    Just realised this has been separately resolved in #13465. You can reject my pull request.

  4. jnothman commented on Mar 20, 2019

    @jnothman
    MemberAuthor

    Sorry we're not good at updating labels

  5. iodapro commented on Apr 17, 2019

    @iodapro

    @jnothman could you tell me please whether this issue was solved?

  6. jnothman commented on Apr 17, 2019

    @jnothman
    MemberAuthor

    Yes, it should have been merged but for an oversight

  7. thomasjpfan commented on Apr 17, 2019

    @thomasjpfan
    Member

    Resolved in #13465

  8. yiakwy commented on Mar 10, 2020

    @yiakwy

    @jnhansen @praths007 I am concerned that linear_sum_assignment is not equivalent to linear_assignment which later implements "maximum values" matching strategy not "complete matching" strategy, i.e. in tracking problem maybe an old landmark lost and a new detection coming in. We don't have to make a complete assignment, just match as more as possible.

    I also try to tell others that it is dangerous to use linear_sum_assignment because it implements complete matching, where in the most cases we don't need.

    Instead of using complete matching by KM algorithms, mini cut - max flow might be a good choice.

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

    Easygood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions