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

Skip to content

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 <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
@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
glemaitre added a commit that referenced this pull request Apr 28, 2021
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
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