Butina clustering bench improvements#188
Merged
Merged
Conversation
- Flip `--no-rdkit-lowmem` to opt-in `--rdkit-lowmem`. The lowmem backend builds its distance matrix in a pure-Python O(n^2) loop that doesn't finish in reasonable time at sizes >= 40k, so default off. - Drop `--include-tanimoto-matrix` and always report both rdkit variants (`rdkit_cluster_only_*` and `rdkit_with_tanimoto_*`) so a single run characterises both the inner-loop and the with-distance-build timings. - Allow rdkit_cluster_only / fused / nvmolkit to run on synthetic-fill fingerprints when the input has fewer mols than `size`; with_tanimoto and lowmem rows are skipped in that case (they need real fingerprints). - Edge-case cutoff changes from 1.1 to 1.0.
evasnow1992
approved these changes
Jun 1, 2026
Collaborator
evasnow1992
left a comment
There was a problem hiding this comment.
Changes look good to me. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed an error when tanimoto similarity of 1.1 was an option, it causes an error in some paths. 1.0 still does the same thing without the error.
Standardizes measurements for different modes. When we run the fused or low mem rdkit/nvmolkit versions, the proper comparison is against the tanimoto matrix THEN Butina for the non-fused versions. However, when directly comparing non-fused, it makes more sense to leave out the tanimoto aspect.