-
-
Notifications
You must be signed in to change notification settings - Fork 26k
FEA CSR support for all DistanceMetric
#23604
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
Merged
lorentzenchr
merged 30 commits into
scikit-learn:main
from
jjerphan:maint/dist-metrics-csr-support
Jun 29, 2022
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b8bd875
MAINT Implement CSR support for all DistanceMetric
jjerphan 7b07188
Merge branch 'main' into maint/dist-metrics-csr-support
jjerphan fb99680
TST Remove useless guard
jjerphan d39d2b2
TST Skip JaccardDistance on 32bit architecture
jjerphan 011e2a2
MAINT Define dtype alias for sparse matrices indices
jjerphan a579630
MAINT Do not shadow dtype names in Tempita templating
jjerphan 98e9d21
fixup! MAINT Define dtype alias for sparse matrices indices
jjerphan 8aa4e44
TST Use cdist and pdist appropriately
jjerphan 9edfa11
DOC Improve comments
jjerphan ee5c6bf
Fixups
jjerphan bf5eb59
MAINT Wrap of indptr values to support sparse-dense
jjerphan 92b8a6c
Apply review comments
jjerphan dc6f8cf
More interesting boolean data for tests
ogrisel bb06f59
FIX Various corrections
jjerphan a5eb20d
FIX Make Jaccard, Hamming and Hashing robust to explicit zeros
jjerphan 19edf11
FIX Make the other boolean DistanceMetric also robust to explicit zeros
jjerphan de86802
TST Remove xfail for Jaccard on 32bit arch.
jjerphan bb920cf
Cast to np.float64_t where appropriate
jjerphan b3759fe
Rename methods and correctly format their signatures
jjerphan 7f89236
fixup! TST Remove xfail for Jaccard on 32bit arch.
jjerphan 01a0c33
FEA CSR support for HaversineDistance
jjerphan 7d8a717
Fix typo
jjerphan 563e359
Do not upcast to 64bit yet keep the same precision
jjerphan f863a51
Do use the default rtol
jjerphan 5ba0fbe
Set rtol explicitly in test_distance_metrics_dtype_consistency
ogrisel 4f45839
Implement the sparse-dense and the dense-sparse case for c-contiguity
jjerphan 3e3e888
Add validation on X and Y, accepting CSR as inputs
jjerphan ddc49d5
Remove left-overs
jjerphan a83887c
Merge branch 'main' into maint/dist-metrics-csr-support
jjerphan 731370a
DOC Motivate the signature for DistanceMetric.{dist_csr, rdist_csr}
jjerphan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.