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

Skip to content

Conversation

@thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #25261
Closes #19905

What does this implement/fix? Explain your changes.

This PR explicitly handles dataframes when validating the input when check_inverse=True.

Any other comments?

This closes in #19905, because it explicity raises an error for DataFrames FunctionTransformer does not know how to validate.

@thomasjpfan thomasjpfan added this to the 1.2.1 milestone Jan 2, 2023
Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

LGTM

@jeremiedbb
Copy link
Member

I don't understand the coverage failure. I check locally and the 2 branches introduced by this PR are indeed covered by the 2 added tests. So let's merge

@jeremiedbb jeremiedbb added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Jan 3, 2023
@jeremiedbb jeremiedbb merged commit 8d74f16 into scikit-learn:main Jan 3, 2023
jpangas pushed a commit to jpangas/scikit-learn that referenced this pull request Jan 4, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 23, 2023
adrinjalali pushed a commit that referenced this pull request Jan 24, 2023
…ionTransformer (#25274)

Co-authored-by: Jérémie du Boisberranger <[email protected]>
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.

'DataFrame' object has no attribute 'dtype' FunctionTransformer does not handle object dtype when check_inverse is True

3 participants