Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add mixed categorical / continuous example with ColumnTransformer #11185

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

Closed
amueller opened this issue Jun 1, 2018 · 3 comments · Fixed by #11197
Closed

Add mixed categorical / continuous example with ColumnTransformer #11185

amueller opened this issue Jun 1, 2018 · 3 comments · Fixed by #11197
Labels
Easy Well-defined and straightforward way to resolve help wanted

Comments

@amueller
Copy link
Member

amueller commented Jun 1, 2018

As mentioned in #9012 we should have an example in the gallery that shows how to use ColumnTransformer to deal with a mix of categorical and continuous data. I guess it should use CategoricalEncoder in the first iteration and we can change it back to OneHotEncoder once #10523 is merged.

@amueller amueller added Easy Well-defined and straightforward way to resolve help wanted labels Jun 1, 2018
@partmor
Copy link
Contributor

partmor commented Jun 1, 2018

@amueller I'd be more than happy to help with this.

@amueller
Copy link
Member Author

amueller commented Jun 1, 2018

@partmor go for it :)

@partmor
Copy link
Contributor

partmor commented Jun 2, 2018

From the "real world" datasets in sklearn.datasets the only one with mixed types is Boston housing, but I find it not to be very representative (1 categorical variable, already encoded).

I will build a randomly generated dataset with mixed types for the illustration. I think this would keep the example more focused on the usage of the transformer, rather than filling lines of code to read data from a UCI database url, for instance.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Well-defined and straightforward way to resolve help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants