Skip to content
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

DOC add versionadded to OneHotEcoder, LabelEncoder #15506

Merged
merged 2 commits into from
Nov 15, 2019

Conversation

geoninja
Copy link
Contributor

@geoninja geoninja commented Nov 2, 2019

add versionadded in doctrings for OneHotEcoder, LabelEncode, OrdinalEncoder

Reference Issues/PRs

#15426

What does this implement/fix? Explain your changes.

Any other comments?

@eickenberg
Copy link
Contributor

Looks good to me format-wise.
I didn't check the actual numbers. What was the strategy you used to obtain them?

@geoninja
Copy link
Contributor Author

geoninja commented Nov 2, 2019

@eickenberg essentially I searched sklearn and went through doc/whats_new, found references to these classes, then read the doc. This way, I found when LabelEncoder and OneHotEncoder were added, and for OrdinalEncoder I found a change that I assumed to be relevant to the functionality.

Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

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

Thanks @geoninja !

@rth rth changed the title [DOC] ISSUE #15426 add versionadded in doctrings for OneHotEcoder, La… DOC add versionadded to OneHotEcoder, LabelEncoder Nov 15, 2019
@rth rth merged commit ff878d6 into scikit-learn:master Nov 15, 2019
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 18, 2019
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 18, 2019
adrinjalali pushed a commit that referenced this pull request Nov 19, 2019
@@ -171,6 +171,8 @@ class OneHotEncoder(_BaseEncoder):

Read more in the :ref:`User Guide <preprocessing_categorical_features>`.

.. versionchanged:: 0.20
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should have versionchanged without specifying what's changed. @rth, is this a convention we have adopted?

Copy link
Member

Choose a reason for hiding this comment

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

I agree, must have missed it.

panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants