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

TypeError (OneHotEncoder) on importing LazyRegressor from lazypredict.Supervised #441

Closed
ehsanyousefzadehasl opened this issue Jan 29, 2024 · 2 comments

Comments

@ehsanyousefzadehasl
Copy link

ehsanyousefzadehasl commented Jan 29, 2024

The following error appears on "from lazypredict.Supervised import LazyRegressor"

File "", line 1, in
File "C:\Users\ ... \Python312\site-packages\lazypredict\Supervised.py", line 98, in
("encoding", OneHotEncoder(handle_unknown="ignore", sparse=False)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: OneHotEncoder.init() got an unexpected keyword argument 'sparse'

Python version: 3.12.1
OS: windows 10

@JSchoeck
Copy link
Contributor

JSchoeck commented Feb 5, 2024

The keyword changed to sparse_output.

@ehsanyousefzadehasl
Copy link
Author

Tested and it worked without the issue. Closed this issue.

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