Skip to content

WIP KBinsDiscretizer supports NaN as input values #19928

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MaxwellLZH
Copy link
Contributor

Reference Issues/PRs

This is a fix to issue #19920 . Include the following changes:

  • Add force_all_finite=False in self._validate_data
  • Propagate NaN values in transform and inverse_transform method

@MaxwellLZH MaxwellLZH changed the title FET KBinsDiscretizer supports NaN as input values WIP KBinsDiscretizer supports NaN as input values Apr 20, 2021
@adrinjalali
Copy link
Member

Reading through #19920, it doesn't seem this is what we've agreed upon (there doesn't seem to be an agreement there).

This also seems very similar to the discussion related to #28043 (cc @StefanieSenger )

I think we should be adding a constructor argument allowing the user to set what the behavior should be.

cc @ogrisel @lorentzenchr

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