That's a cool trick but I am worried it would render our API too "frameworky" for my taste.
I think the FunctionTransformer is enough: http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.FunctionTransformer.html
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn