Skip to content
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

Cannot import sklearn.preprocessing.TargetEncoder #304

Open
memeplex opened this issue Feb 9, 2024 · 1 comment
Open

Cannot import sklearn.preprocessing.TargetEncoder #304

memeplex opened this issue Feb 9, 2024 · 1 comment

Comments

@memeplex
Copy link

memeplex commented Feb 9, 2024

I reported microsoft/pylance-release#5454 to pylance, but maybe it belongs here. I'm not sure whether the stubs here are distributed with pylance or not.

Notice that TargetEncoder is quite new, it was introduced in sklearn 1.3.

@Avasam
Copy link
Contributor

Avasam commented Feb 11, 2024

@memeplex You are correct, the stubs found here are shipped with Pylance (but not pyright). Feel free to open a PR to add missing symbols that you need.
(note, I am not a maintainer, but I have been moving a handful of stubs here over to typeshed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants