-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH KMeans initialization account for sample weights #25752
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
Merged
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
2f7d59f
added support for sample_weights in init
glevv 1d11434
added test
glevv 3985354
lint
glevv 52be2c0
added entry to changelog
glevv 95e3bc1
lint
glevv 58c856b
Update _kmeans.py
glevv 237b6c1
fix bisect kmeans
glevv 6fbe46a
changed tests
glevv ee3635f
add test for bisect
glevv 4c54226
hotfix
glevv 22baa0a
additions to changelog
glevv 4d88c76
Update test_bisect_k_means.py
glevv 9e25744
Update test_k_means.py
glevv c942ed7
init_size bugfix
glevv 57b43ed
Update test_bisect_k_means.py
glevv 1e98579
Update test_bisect_k_means.py
glevv c448b04
Merge branch 'main' into init_samp_w
glevv 4637b82
more robust test
jeremiedbb 3fa6367
fix docs
glevv ae882bb
hotfix
glevv 26216d9
mention backward incompatibility
glevv 1513863
Merge branch 'main' into init_samp_w
glevv e857558
Update _bisect_k_means.py
glevv 5955aed
doc fix
glevv ca91c1f
Merge branch 'main' into init_samp_w
glevv 8b08c44
Merge branch 'scikit-learn:main' into init_samp_w
glevv 829c970
Merge branch 'main' into init_samp_w
glemaitre 66c3aa3
change docstirng
glevv 27cc2a0
use global seed in test
glevv 61147fd
use global seed in bisect kmeans test
glevv 15bd8f1
rename vars
glevv ce35203
rename vars
glevv 9ae547e
lint
glevv ba80ef8
updated docs in fit method
glevv 021a531
updated docs of fit and partial_fit methods
glevv af1783f
Merge branch 'main' into init_samp_w
glevv 136a92d
added jeremiedbb kmeans_plus_plus modification
glevv c15e107
changed tests
glevv 2c45c04
changed docs
glevv 75f8048
changed tests
glevv 62e85bc
Update test_k_means.py
glevv b76cfcc
updated changelog
glevv d49f1ba
lint
glevv 2752135
lint
glevv 15dddb9
Update _kmeans.py
glevv 0d7a725
Update _kmeans.py
glevv eb8da0b
Update sklearn/cluster/_kmeans.py
glevv 6c20527
Update sklearn/cluster/_kmeans.py
glevv c640cdc
Update _kmeans.py
glevv c36a605
Merge branch 'main' into init_samp_w
glevv b49cdf7
lint
glevv df99506
doc fix
glevv 30d3b1a
doc fix
glevv c6d5fd8
doc fix
glevv fb6f9c8
Update test_spectral_embedding.py
glevv cf73e0e
revert
glevv 165c0ad
doc update
glevv 0647e36
update kmeans tests
glevv 8e97cd0
fix spectral tests
glevv 9650a45
Merge branch 'main' into init_samp_w
glevv 31849bc
lint
glevv 24c68f9
Update test_k_means.py
glevv 1884711
Update test_k_means.py
glevv 26054f3
lint
glevv d628630
added sample_weight to docstring
glevv b192bf1
updated tests
glevv 996d3b0
typo
glevv 79efebc
Update sklearn/cluster/_kmeans.py
glevv 4ffbb91
changed docs
glevv aaa1acc
Update v1.3.rst
glevv 89f80ae
Update test_k_means.py
glevv ea764c7
Update test_bisect_k_means.py
glevv a5e3489
Update test_k_means.py
glevv 675cd17
Update test_bisect_k_means.py
glevv ebc67dc
Update test_bisect_k_means.py
glevv 511050e
Update test_bisect_k_means.py
glevv d3c08e5
Update test_k_means.py
glevv ccf3604
Merge branch 'main' into init_samp_w
glevv 061c6a0
Update test_k_means.py
glevv c2e3743
Update test_k_means.py
glevv c06a8b3
docs fix
glevv 16aae7c
stability fix
glevv c8886d7
Update test_bisect_k_means.py
glevv 8819dd5
Update test_bisect_k_means.py
glevv 7c2dd2b
Update _kmeans.py
glevv 0c8c021
Update v1.3.rst
glevv 4d09437
Update test_k_means.py
glevv ae1f561
Update v1.3.rst
glevv 2861d35
Merge branch 'scikit-learn:main' into init_samp_w
glevv 8061460
revert unrelated
jeremiedbb a9b71e7
Update _kmeans.py
glevv 3223902
Apply suggestions from code review
jeremiedbb af94b06
Apply suggestions from code review
jeremiedbb fc758da
Update test_bisect_k_means.py
glevv f1651d0
Update test_k_means.py
glevv 924a357
Update sklearn/cluster/tests/test_k_means.py
jeremiedbb 537a83a
Update sklearn/cluster/tests/test_k_means.py
jeremiedbb 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
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.