-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add improved version of Hungarian algorithm. #1140
base: main
Are you sure you want to change the base?
Add improved version of Hungarian algorithm. #1140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @carlosgmartin!
Some suggestions:
- keep a single file, and name the first algorithm you did as "base_hungarian_algorithm"
- add in e.g. the new algorithm's docstring a sentence that differentiates the two implementations.
- Add a test that compares the results between the two implementations maybe
Otherwise it's great
@vroulet Seems to me it’s cleaner to keep each implementation in a separate file, since
WDYT? |
In any case we should add in the docstring why they differ.
I would actually agree with you, but typically the alias file in optax has an ever increasing list of optimizers. So let's keep the same logic here. (That would actually be my main argument in favor of keeping them in a single file: it may be better for the package to follow a similar philosophy across folders/files). |
64cdc1d
to
f134068
Compare
@vroulet Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @carlosgmartin !
Follow-up to #1083 (comment).