Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 7 commits into from
May 23, 2017

Conversation

glemaitre
Copy link
Member

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?

@glemaitre glemaitre changed the title [WIP] DOC Homogeneous deprecation in docstring [MRG] DOC Homogeneous deprecation in docstring May 20, 2017
@glemaitre
Copy link
Member Author

http://scikit-learn.org/circle?10335/_changed.html

@jnothman Does it seem some reasonable directives?

Copy link
Member

@jnothman jnothman left a 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.

@glemaitre
Copy link
Member Author

@lesteve Could you have a look at it.

if its impurity is above the threshold, otherwise it is a leaf.

.. deprecated:: 0.19
``min_impurity_split`` has been deprecated in favor of
Copy link
Member

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)

@@ -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``
Copy link
Member

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.

@@ -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::
Copy link
Member

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".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@glemaitre
Copy link
Member Author

glemaitre commented May 22, 2017

Done!

@lesteve
Copy link
Member

lesteve commented May 23, 2017

LGTM, merging!

Note the AppVeyor is a transient failure we are seeing from time to time.

@lesteve lesteve merged commit 92cb166 into scikit-learn:master May 23, 2017
@lesteve
Copy link
Member

lesteve commented May 23, 2017

Thanks!

Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
Update developers doc to use "deprecated" sphinx directive.
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
Update developers doc to use "deprecated" sphinx directive.
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
Update developers doc to use "deprecated" sphinx directive.
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
Update developers doc to use "deprecated" sphinx directive.
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
Update developers doc to use "deprecated" sphinx directive.
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
Update developers doc to use "deprecated" sphinx directive.
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
Update developers doc to use "deprecated" sphinx directive.
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
Update developers doc to use "deprecated" sphinx directive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants