[MRG] DOC add versionadded versionchanged for 0.21#16737
[MRG] DOC add versionadded versionchanged for 0.21#16737thomasjpfan merged 9 commits intoscikit-learn:masterfrom
Conversation
|
@jnothman @adrinjalali @cmarmo could you have a look? |
adrinjalali
left a comment
There was a problem hiding this comment.
I didn't check for completeness, but these changes look good to me, except the two notes I'm not sure about. Thanks @Reksbril
I'll wait for another review before changing what you have.
sklearn/cluster/_agglomerative.py
Outdated
| .. versionchanged:: 0.21 | ||
| ``n_components_`` was renamed to ``n_connected_components_``. | ||
|
|
There was a problem hiding this comment.
I'm not sure if we need these. Its true that the attribute was renamed, but from the perspective of n_connected_components_, nothing has changed since its introduction. Not sure if we should do a versionadded instead or not. WDYT @jnothman ?
There was a problem hiding this comment.
I feel like these might be useful, e.g. for a user to understand why and when their code started to break. No strong opinion though
There was a problem hiding this comment.
Maybe versionadded and:
n_connected_components_was added to replacen_components_
There was a problem hiding this comment.
+1 for the @thomasjpfan versionadded formulation.
NicolasHug
left a comment
There was a problem hiding this comment.
Thanks for the PR and for your patience @Reksbril
Made a few comments but mostly looks good. Just not sure about the usefulness of some of these
sklearn/cluster/_agglomerative.py
Outdated
| .. versionchanged:: 0.21 | ||
| ``n_components_`` was renamed to ``n_connected_components_``. | ||
|
|
There was a problem hiding this comment.
I feel like these might be useful, e.g. for a user to understand why and when their code started to break. No strong opinion though
sklearn/neighbors/_base.py
Outdated
| """Finds the K-neighbors of a point. | ||
| Returns indices of and distances to the neighbors of each point. | ||
|
|
||
| .. versionchanged:: 0.21 |
There was a problem hiding this comment.
I feel like we wouldn't need these. Thoughts @adrinjalali ?
There was a problem hiding this comment.
I agree we do not need the versionchanged for NotFittedError.
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
NicolasHug
left a comment
There was a problem hiding this comment.
Thanks @Reksbril
LGTM, though I think we don't need the NotFittedError entries. Let's see what others think
|
@adrinjalali @ThomasDelteil could you check? |
|
Hi @Reksbril could you please modify the |
|
@cmarmo oh, thanks, I've missed this one |
sklearn/cluster/_agglomerative.py
Outdated
| The estimated number of connected components in the graph. | ||
|
|
||
| .. versionchanged:: 0.21 | ||
| ``n_components_`` was renamed to ``n_connected_components_`` |
There was a problem hiding this comment.
Should be modified as above (versionchanged -> versionadded)
|
@cmarmo I've made the requested change |
|
@thomasjpfan this is the last PR to close #15426. I suppose failing checks are related to the current work on |
|
Thank you for the ping @cmarmo and thank you for the PR @Reksbril ! |
Co-authored-by: Mateusz Górski <mateuszg122@gmail.com> Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Mateusz Górski <mateuszg122@gmail.com> Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Mateusz Górski <mateuszg122@gmail.com> Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Mateusz Górski <mateuszg122@gmail.com> Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Part of work in #15426.
I think there shouldn't have been anything added in files:
sklearn/compose/_column_transformer.py
sklearn/ensemble/_voting.py
but I decided to include these changes too. I will just remove them if necessary.