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

OneHotEncoder TypeError: __init__() got an unexpected keyword argument 'sparse_output' #221

Open
sarahmish opened this issue Mar 15, 2024 · 0 comments

Comments

@sarahmish
Copy link

  • baytune 0.5.0
  • macOS 14.1
  • python 3.8

The following line produces an error when scikit-learn<1.2. I would suggest to add it as a requirement for the package.

self._encoder = OneHotEncoder(categories=[choices], sparse_output=False)

reference:

New in version 1.2: sparse was renamed to sparse_output

https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html

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

1 participant