Skip to content

FIX: Clarify LabelEncoder does not support set_output #31944

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 1 commit into
base: main
Choose a base branch
from

Conversation

mdhvgoyal
Copy link

Fixes #26711

What does this implement/fix? Explain your changes.

This PR addresses the AttributeError by adding a Notes section to the LabelEncoder docstring. The note clarifies that LabelEncoder is intended for target encoding (y) and does not support the set_output API. This helps manage user expectations and explains the intended use of the class.

Any other comments?

(No other comments)

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: cc81dae. Link to the linter CI: here

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.

AttributeError: This 'LabelEncoder' has no attribute 'set_output'
1 participant