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 with array #115

Open
SjoerdHerlaar opened this issue Feb 11, 2020 · 0 comments
Open

One-hot encoding with array #115

SjoerdHerlaar opened this issue Feb 11, 2020 · 0 comments

Comments

@SjoerdHerlaar
Copy link

I am working with a dataset that includes many categorical variables, and using dummy variables enlarges the number of variables significantly. I was hoping to use vectors for each categorical variable but I am unsure whether SOMPY would allow for such a datatype to work.

If I were to encode animal[cat, dog] as a variable called animal with values [0,1] and [1,0], would SOMPY be able to hand this or should I make variables for each type of animal with dummy variables?

Thank you!

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