Skip to content

DOC Fix versionchanged in OneHotEncoder #16562

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 3 commits into from
Apr 9, 2021

Conversation

rth
Copy link
Member

@rth rth commented Feb 27, 2020

Fixes #15506 (comment)

To follow up on #15506 (comment) there was indeed a change of behaviour in OneHotEncoder in 0.20 (cf what's new) but I'm not convinced about the added value of something like,

.. versionchanged:: 0.22 OneHotEncoder now handle encoding of all feature types (also handles string-valued features) and derives the categories based on the unique values in the features instead of the maximum value in the features.

added in 0.23 (i.e. mid 2020) for something that was relevant for the 0.19 -> 0.20 migration (i.e. mid 2018). For the vast majority of users that's not relevant. So I prefer to remove the versionchanged altogether.

cc @jnothman

@glemaitre
Copy link
Member

Since we are in this file. Could you add the versionadded for the drop parameter in the OHE

Base automatically changed from master to main January 22, 2021 10:52
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

I agree that versionchanged without a description does not add much value in the docstring.

LGTM

@glemaitre glemaitre self-requested a review April 9, 2021 08:26
@glemaitre glemaitre merged commit a80b99c into scikit-learn:main Apr 9, 2021
@glemaitre
Copy link
Member

Thanks @rth

@rth rth deleted the fix-ohe-versionchanged branch April 9, 2021 08:39
thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Apr 19, 2021
)

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
@glemaitre glemaitre mentioned this pull request Apr 22, 2021
12 tasks
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Apr 22, 2021
)

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
glemaitre added a commit that referenced this pull request Apr 28, 2021
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
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.

3 participants