-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Add links to KMeans examples in docstrings and the user guide #27799
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
ArturoAmorQ
merged 14 commits into
scikit-learn:main
from
marenwestermann:kmeans-examples
Jan 6, 2024
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
851e7b4
plot_cluster_iris example
marenwestermann 632a543
add plot_cluster_iris example to user guide
marenwestermann 858571f
add links to plot_color_quantization
marenwestermann 983865c
fix rendering issue
marenwestermann 6edf701
Merge remote-tracking branch 'upstream/main' into kmeans-examples
marenwestermann 54846ec
add links to plot_kmeans_assumptions
marenwestermann a4f05c8
embed links in text
marenwestermann 48a0b30
add link to plot_kmeans_digits in user guide
marenwestermann 5f85468
add links to plot_kmeans_silhouette_analysis
marenwestermann 57b1cf1
add link to plot_mini_batch_kmeans
marenwestermann 147c473
add link in plot_document_clustering.py
marenwestermann c921706
add links to plot_document_clustering
marenwestermann 759da86
address comments
marenwestermann ca33b93
Merge remote-tracking branch 'upstream/main' into kmeans-examples
marenwestermann 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
china = load_sample_image("china.jpg") | ||
|
||
# Convert to floats instead of the default 8 bits integer coding. Dividing by | ||
# 255 is important so that plt.imshow behaves works well on float data (need to | ||
# 255 is important so that plt.imshow works well on float data (need to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch! |
||
# be in the range [0-1]) | ||
china = np.array(china, dtype=np.float64) / 255 | ||
|
||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this can be done in another PR, but currently it seems that the initialization is good. I would rather pass a fixed
random_state
toKMeans
instead of setting a globalnp.random.seed