Slight adjustment to the doc string of KMeans regarding the attribute…#12537
Merged
jnothman merged 1 commit intoscikit-learn:masterfrom Nov 7, 2018
nogilnick:master
Merged
Slight adjustment to the doc string of KMeans regarding the attribute…#12537jnothman merged 1 commit intoscikit-learn:masterfrom nogilnick:master
jnothman merged 1 commit intoscikit-learn:masterfrom
nogilnick:master
Conversation
Member
|
looks good, thanks! Also looks like I had the last person that ask about this make a comment - but maybe adding it in the attribute description as well will make it more visible. |
amueller
approved these changes
Nov 6, 2018
jnothman
reviewed
Nov 6, 2018
Member
jnothman
left a comment
There was a problem hiding this comment.
I've not checked if there are other pep8 issues.
… cluster_centers_
Contributor
Author
|
Oops! I fixed the whitespace issues, re-analyzed it in Spyder, and squashed the commits. Should be okay as far as pep8 goes now. Hope the extra documentation can save you at least more trouble than I've already caused! |
jnothman
approved these changes
Nov 7, 2018
Member
|
Thanks @nicholastoddsmith |
thoo
added a commit
to thoo/scikit-learn
that referenced
this pull request
Nov 7, 2018
* upstream/master: joblib 0.13.0 (scikit-learn#12531) DOC tweak KMeans regarding cluster_centers_ convergence (scikit-learn#12537) DOC (0.21) Make sure plot_tree docs are generated and fix link in whatsnew (scikit-learn#12533) ALL Add HashingVectorizer to __all__ (scikit-learn#12534) BLD we should ensure continued support for joblib 0.11 (scikit-learn#12350) fix typo in whatsnew Fix dead link to numpydoc (scikit-learn#12532) [MRG] Fix segfault in AgglomerativeClustering with read-only mmaps (scikit-learn#12485) MNT (0.21) OPTiCS change the default `algorithm` to `auto` (scikit-learn#12529) FIX SkLearn `.score()` method generating error with Dask DataFrames (scikit-learn#12462) MNT KBinsDiscretizer.transform should not mutate _encoder (scikit-learn#12514)
thoo
added a commit
to thoo/scikit-learn
that referenced
this pull request
Nov 9, 2018
…ybutton * upstream/master: FIX YeoJohnson transform lambda bounds (scikit-learn#12522) [MRG] Additional Warnings in case OpenML auto-detected a problem with dataset (scikit-learn#12541) ENH Prefer threads for IsolationForest (scikit-learn#12543) joblib 0.13.0 (scikit-learn#12531) DOC tweak KMeans regarding cluster_centers_ convergence (scikit-learn#12537) DOC (0.21) Make sure plot_tree docs are generated and fix link in whatsnew (scikit-learn#12533) ALL Add HashingVectorizer to __all__ (scikit-learn#12534) BLD we should ensure continued support for joblib 0.11 (scikit-learn#12350) fix typo in whatsnew Fix dead link to numpydoc (scikit-learn#12532) [MRG] Fix segfault in AgglomerativeClustering with read-only mmaps (scikit-learn#12485) MNT (0.21) OPTiCS change the default `algorithm` to `auto` (scikit-learn#12529) FIX SkLearn `.score()` method generating error with Dask DataFrames (scikit-learn#12462) MNT KBinsDiscretizer.transform should not mutate _encoder (scikit-learn#12514)
thoo
pushed a commit
to thoo/scikit-learn
that referenced
this pull request
Nov 14, 2018
thoo
pushed a commit
to thoo/scikit-learn
that referenced
this pull request
Nov 14, 2018
jnothman
pushed a commit
to jnothman/scikit-learn
that referenced
this pull request
Nov 14, 2018
jnothman
pushed a commit
to jnothman/scikit-learn
that referenced
this pull request
Nov 14, 2018
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…it-learn#12537)" This reverts commit 35fa9ef.
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…it-learn#12537)" This reverts commit 35fa9ef.
koenvandevelde
pushed a commit
to koenvandevelde/scikit-learn
that referenced
this pull request
Jul 12, 2019
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.
… cluster_centers_
Reference Issues/PRs
Fixes #12506
What does this implement/fix? Explain your changes.
This is a change to the KMeans doc string which highlights the fact that the attribute cluster_centers_ will not be consistent with labels_ if the algorithm stops before fully converging.
Any other comments?
There was a note in the documentation about this scenario, but it mentioned means_ and not cluster_centers_ (see the second modified block). I didn't see means_ defined anywhere so I updated it to cluster_centers_.