-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] DOC Homogeneous deprecation in docstring #8907
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
Conversation
http://scikit-learn.org/circle?10335/_changed.html @jnothman Does it seem some reasonable directives? |
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.
Yes I'd be in favour of this.
@lesteve Could you have a look at it. |
sklearn/ensemble/forest.py
Outdated
if its impurity is above the threshold, otherwise it is a leaf. | ||
|
||
.. deprecated:: 0.19 | ||
``min_impurity_split`` has been deprecated in favor of |
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.
you need some indentation here (like you do for the others)
doc/whats_new.rst
Outdated
@@ -168,7 +168,7 @@ Enhancements | |||
- Add ``sample_weight`` parameter to :func:`metrics.cohen_kappa_score` by | |||
Victor Poughon. | |||
|
|||
- In :class:`gaussian_process.GaussianProcessRegressor`, method ``predict`` | |||
- In :class:`gaussian_process.GaussianProcessRegressor`, method ``predict`` |
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.
Please try to avoid unrelated changes like the ones in this file.
doc/developers/contributing.rst
Outdated
@@ -740,6 +740,14 @@ the removal will be in 0.(x+2). For example, if the deprecation happened | |||
in version 0.18-dev, the message should say it happened in version 0.18 | |||
and the old behavior will be removed in version 0.20. | |||
|
|||
In addition, a deprecation note should be added in the docstring, recalling the | |||
same information as the deprecation warning as explained above. Use the | |||
``.. deprecated::`` tag:: |
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.
I would double-check the terminology here. I think sphinx called this a "directive" rather than a "tag".
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.
yep, it is a directive (http://www.sphinx-doc.org/en/stable/markup/para.html)
Done! |
LGTM, merging! Note the AppVeyor is a transient failure we are seeing from time to time. |
Thanks! |
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Update developers doc to use "deprecated" sphinx directive.
Reference Issue
Fixes #8904
Fixes #8903
What does this implement/fix? Explain your changes.
Add in the documentation how to announce deprecation in docstring.
Change all deprecation announcements to make them homogeneous.
Any other comments?