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

One-hot encoding factor term #322

Open
ilagith opened this issue Oct 2, 2022 · 0 comments
Open

One-hot encoding factor term #322

ilagith opened this issue Oct 2, 2022 · 0 comments

Comments

@ilagith
Copy link

ilagith commented Oct 2, 2022

Hi,

I have an array as:
[[ '1234' 0.123 'GitHub']]

and I want to pass the third feature as a factor term f(2, coding = 'one-hot').
However, the encoding fails returning this error:

ValueError: X data must be type int or float, but found type: <class 'numpy.object_'> Try transforming data with a LabelEncoder first. as a consequence of utils.check_array

Any suggestion to overcome 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

1 participant