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

Parameter sparse in sklearn.preprocessing.OneHotEncoder deprecated since v1.2 #84

Open
ThrivikramanV opened this issue Feb 20, 2023 · 0 comments

Comments

@ThrivikramanV
Copy link

The latest version of sklearn is 1.2.1.

The official documentation says "sparse is deprecated in 1.2 and will be removed in 1.4. Use sparse_output instead." (https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html)

The issue can be resolved by modifying line 977 in hypermapper/models.py to

encoder = OneHotEncoder(categories="auto", sparse_output=False)

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