问题
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