-
Notifications
You must be signed in to change notification settings - Fork 74
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
PyError with OneHotEncoder (Julia 0.6.0 on Windows10) #32
Comments
It's probably a bug, but have you checked if the equivalent code works in Python? You can use
|
Thank you for the detailed bug report! |
Sorry, my mistake. Turns out OneHotEncoder only accepts integer values. Rather unexpected and weird in my opinion but clearly stated in the docs. At least I'm not the only one: scikit-learn-contrib/sklearn-pandas#63. : ) However, I still get an 'invalid Array dimensions' error with this code
although this code in Python works fine
|
Fortunately the change to OneHotEncoder for accepting strings is in the works: scikit-learn/scikit-learn#4920 |
Figured it out; Fortunately, you can solve the problem with
Use |
Thank you!
Will do. Hopefully we can soon replace all the preprocessing steps with pure Julia implementations. The work at JuliaML seems to get there step-by-step. |
I'm getting a PyError with this code.
It seems specific to OneHotEncoder. For example, LabelBinarizer works fine like this:
I'm on Windows 10 using Julia 0.6.0.
Package versions:
I let ScikitLearn.jl automatically handle the installation of Python dependencies. The installed versions are:
The text was updated successfully, but these errors were encountered: