Hungarian algorithm in Python

柔情痞子 提交于 2020-01-21 02:59:05

问题


Is there good implementation of Hungarian algorithm in standard python libraries?


回答1:


I just tried:


pip install munkres

and it worked. Here you can find a short explanation on how to use it.

I got an error trying to install "hungarian".




回答2:


Check this munkres out




回答3:


There are multiple Options:

pip install munkres

Documentation here

pip install hungarian

Documentation here

pip install scipy
scipy.optimize.linear_sum_assignment

Documentation here



来源:https://stackoverflow.com/questions/4075669/hungarian-algorithm-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!