scikit-learn/scikit-learn — pull request #1428 by tnunes (2012-11-30 15:11:57+00:00)
Title: Add fit_transform to FeatureUnion

Implements #1426.

`FeatureUnion.transform` and `FeatureUnion.fit_transform`, and also `_transform_one` and `_fit_transform_one` share similar logic, which led to some code duplication.

Let me know if you prefer to factor out common parts at the expense of extra function calls.

I believe this addition is already covered by the test `test_pipeline#test_feature_union`. If you think additional test cases are needed, tell me which.