-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
ENH Support for sparse matrices added to sklearn.metrics.silhouette_samples
#24677
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
glemaitre
merged 41 commits into
scikit-learn:main
from
awinml:silhouette_samples_sparse_matrices
Mar 20, 2023
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6b39cc3
Updated silhouette reduce function
56c7bce
Fixed lint tests
d4f17da
Codecov coverage failing test
5083c85
Fixed indentation to conform to PEP style
deffdfb
Fixed coding style
bb2d464
Merge branch 'master' of https://github.com/scikit-learn/scikit-learn…
76e7140
Unit test for changes
4e18cbf
Avoid converting sprase matrix to dense matrix
476e331
Fixed line spaces in test file:
15e400f
Merge branch 'master' of https://github.com/scikit-learn/scikit-learn…
d1706a5
Unit test for sparse input implementation
b9de46f
Resolved Merge Conflicts in metrics/cluster/_unsupervised.py
awinml 0b1bee5
Updated with suggested change
awinml 72cd89c
Updated check for non-zero diagonal entries in silhouette_samples
awinml 9c42182
Fixed naming for error message
awinml 8bc4bea
Update changelog 1.2
awinml e5db200
Removed test_silhouette_sparse_input, paramterized test_silhouette_sa…
awinml f291671
Removed Unnecessary imports
awinml d3f5375
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml 069f417
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml 0d55ba0
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml 315a8bc
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml 96cc009
Update changelog
awinml 1bec8c2
Optimize for CSR
awinml 708d066
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml 2af1d1d
Update sklearn/metrics/cluster/_unsupervised.py
awinml 186f60c
Add test for Non-CSR sparse matrices
awinml 2ea8c6f
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml b223494
Update Changelog
awinml 8d80d5e
Remove redundant csr conversion
awinml 815ac2d
Update sklearn/metrics/cluster/tests/test_unsupervised.py
awinml 1d8aa25
Update docstrings for sparse data support
awinml 94fe4d3
Rename clust_dist to cluster_distances
awinml 08c17ad
Removed sparse check from loop
awinml 525953f
Accept only CSR matrices
awinml 59d5705
Add new test for eucidean metric
awinml af294b4
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml 095b1c0
Fix docstrings
awinml e305b56
Merge branch 'main' into silhouette_samples_sparse_matrices
awinml b035048
Add test for _silhouette_reduce
awinml 655b3b2
Update sklearn/metrics/cluster/tests/test_unsupervised.py
glemaitre 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
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
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
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.