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

Skip to content

[MRG] Adds handle unknown option to ordinal encoder #13897

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

Closed

Conversation

fmder
Copy link

@fmder fmder commented May 16, 2019

Reference Issues/PRs

Handles new values when encountered after fit. This has been referenced in issue #10465 and #11997. Although it does no passthrough NaNs or None.

What does this implement/fix? Explain your changes.

This PR uses the basic features implemented for one hot encoding to add the same functionality to OrdinalEncoder. This handles both the transform and inverse_transform. In transform category -1 is returned for new values, and None is returned in the inverse transform for -1 values.

Any other comments?

This PR might be conflicting with the work of PR #12045.

The unknown category and unknow value could be configured at intanciation.

@fmder
Copy link
Author

fmder commented May 17, 2019

Sorry, I did not do my job properly, #13883, #13808 already cover that. You can close if you want.

@fmder fmder changed the title Adds handle unknown option to ordinal encoder [MRG] Adds handle unknown option to ordinal encoder May 22, 2019
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.

2 participants