-
Notifications
You must be signed in to change notification settings - Fork 204
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
Hungarian Algorithm Infinite Loop with NaN Input #1179
Comments
To be checked if #1140 fixes this issue or not. @carlosgmartin |
It's not clear to me that this is a bug, since (to my mind) it does not really make sense to ask what's the solution to an assignment problem which consists of or contains (One can always apply |
But I think we should not allow the algorithm to enter an infinite loop. The ideal would have been to do error reporting, by returning a status variable (succeeded or failed) but this changes the function signature.
Maybe the identity permutation? An alternative would be to add the |
Actually, it looks like the newer version of the algorithm in #1140 doesn't loop forever on nans. So this should be fixed after that is merged. |
The Hungarian algorithm implementation in optax.assignment.hungarian_algorithm enters an infinite loop when the input cost matrix contains only NaN (Not a Number) values.
Reproducible Example:
The text was updated successfully, but these errors were encountered: