-
Notifications
You must be signed in to change notification settings - Fork 128
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
Mapping attribution of tokens between encoder and decoder #75
Mapping attribution of tokens between encoder and decoder #75
Conversation
@MarioKrenn6240 and @alstonlo Ready for review |
Hi @whitead, Thank you for this PR! I will get to reviewing this as soon as possible (likely next week). I apologize for the delay! |
Hi @whitead, Thank you for the PR, and apologies once again for the delay! I do have some minor suggestions:
One more involved extension that I propose is creating a separate
|
Yes, it's been a while since I looked at this.
For the broader proposed changes - these sound like a good refactor. Maybe we could merge this though since there are current user needs and we can explore efficiency or more complex attribution as the use-cases arises? This PR satisfies my needs for attribution currently. |
Sorry this took so long, will be resolved in a few days. (we had and have long discussions about this and the other PRs internally - that took loong time). Thanks @whitead again! :) Short summary, our question (after some timing tests) for this and other PRs was, that we dont want to influence the behaviour of the main code, if the attribute map is not required. So we were thinking about different ways how to modify the PR in the simplest way such that it doesnt impact directly the |
Per @MarioKrenn6240's communication, he and the SELFIES developers did testing and found this PR to be too slow. I recorded the timings from the test code with Master
PR (1.3% slower than master) as of 4c99c47
Improvement 1 (1.1% slower than master): Removing
Improvement 2 (0.2% slower than master): Flag for decoder
Improvement 3 (0.3% faster than master): Flag for mol graph
|
Wow thanks @whitead , that's impressive that you add a new feature and at the same time make the code faster :). We merge it, v2.1.0 will be announced in a bit (we want to add the other two PRs too, just need to do a few small checks). |
Attribution map improvements (#75)
Fixes Issue #48. Following @alstonlo's idea, I'll be making the attribution stored in the graph. I decided to make this a WIP since there are multiple participants in that issue. Atoms/bonds are attributed to a list of tokens (e.g., a branch and atom token).