Repository navigation
Optimize shared distance calculations - #122
Merged
Merged
Conversation
This was referenced Sep 25, 2026
AP6YC
force-pushed
the
optimize-distance-kernels
branch
from
September 30, 2026 02:15
86d69c0 to
d3e29b8
Compare
NiklasMelton
marked this pull request as ready for review
September 30, 2026 15:48
NiklasMelton
force-pushed
the
optimize-distance-kernels
branch
from
September 30, 2026 15:49
d3e29b8 to
5c10cee
Compare
AP6YC
reviewed
Sep 30, 2026
Owner
There was a problem hiding this comment.
Works for me! If it's done fast in scipy, I'm fine to add it as a reasonable mainline dependency.
Owner
There was a problem hiding this comment.
Not an unreasonable dep addition, especially for the speedups from minimum_off_diagonal and distance kernels.
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.
Summary
Performance
Five alternating trials; median trial-average time; complete construction and computation included;
OPENBLAS_NUM_THREADS=1.10,000 samples, 2 features, 10 clusters
4,096 samples, 8 features, 128 clusters
scikit-learn reference
The DB definitions differ: this package uses squared distances while scikit-learn uses Euclidean distances.
Validation
Issue
Closes #131