Skip to content
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

Fix generation of indices in linear_assignment.py #293

Open
Thunfischpirat opened this issue Jul 7, 2022 · 0 comments
Open

Fix generation of indices in linear_assignment.py #293

Thunfischpirat opened this issue Jul 7, 2022 · 0 comments

Comments

@Thunfischpirat
Copy link

the sklearn function linear_assignment is deprecated and has to be replaced with linear_sum_assignment in linear_assignment.py like this:

from scipy.optimize import linear_sum_assignment as linear_assignment

Furthermore line 58 of the same file needs to be replaced by
indices = np.asarray(linear_assignment(cost_matrix)).T

Source

One of the proposed mergers #286 also fixed this problem. Please accept it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant