scikit-learn/scikit-learn — pull request #1279 by amueller (2012-10-25 20:11:50+00:00)
Title: MRG added OneHotEncoder

New one-hot encoder with tests + docs.
This is less general then what @larsmans did in #242, but I think together with DictVectorizer, we can cover many use-cases.

In particular, this estimator assumes input to be coded in integers from 0-n_values.
I think this is a sensible assumption and gets rid of a lot of hassle ;)

I am not sure if this should sit in preprocessing or should go into feature_extraction.

Wdyt?