Skip to content

FIX Fixes OrdinalEncoder.inverse_tranform nan encoded values #24087

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 5 commits into from
Aug 5, 2022

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #24082

What does this implement/fix? Explain your changes.

This PR fixes OrdinalEncoder.inverse_transform when either the encoded unknown values or encoded missing values is nan.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM

Do we want this one in 1.1.2?

@thomasjpfan thomasjpfan added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Aug 4, 2022
@thomasjpfan thomasjpfan added this to the 1.1.2 milestone Aug 4, 2022
@thomasjpfan
Copy link
Member Author

Do we want this one in 1.1.2?

Okay, I moved this to 1.1.2.

@thomasjpfan thomasjpfan mentioned this pull request Aug 4, 2022
12 tasks
@glemaitre
Copy link
Member

I am taking a bit of liberty to merge this one without a second approval

@glemaitre glemaitre merged commit 6894a9b into scikit-learn:main Aug 5, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Aug 5, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:preprocessing To backport PR merged in master that need a backport to a release branch defined based on the milestone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OrdinalEncoder fails inverse_transform with np.nan as
2 participants