Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@florian-huber
Copy link
Collaborator

@florian-huber florian-huber commented Aug 25, 2025

This is to have fast cosine estimates in matchms and is based on Harwood et al. (2023), but in an implementation that differs from the original GitHub implementation.

In terms of runtime both implementations are close. The original seems to still be a bit faster, but I considered that to not be worth spending too much time on (at least not to me right now).
image

One consequence of the different implementation is that the rounding is not the same for the tolerance windows. The original BLINK, say with a tolerance of 0.01 was an approximation of the CosineGreedy with tolerance < 0.01 (which is why the authors used tolerance=0.0099. The implementation in this PR, however, sticks to the same tolerance so it would approximate CosineGreedy with a tolerance=0.01.

@florian-huber
Copy link
Collaborator Author

Thanks a lot for reviewing @julianpollmann !

@florian-huber florian-huber merged commit 60aaf81 into master Sep 17, 2025
7 checks passed
@florian-huber florian-huber deleted the add_blink_score branch September 17, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants