scikit-learn/scikit-learn — pull request #3800 by MechCoder (2014-10-24 10:51:36+00:00)
Title: Handle_unknown option to OneHotEncoder

OneHotEncoder fails with a error that is not helpful if a missing categorical feature is present during transformation. Add handle_unknown with an "error" and an "ignore" option.

Fixes https://github.com/scikit-learn/scikit-learn/issues/2169