dtoolkit.pipeline.make_union#
- dtoolkit.pipeline.make_union(*transformers: list[dtoolkit.transformer.base.Transformer], n_jobs: int = None, verbose: bool = False) FeatureUnion[source]#
Construct a FeatureUnion from the given transformers.
See also
FeatureUnionClass for concatenating the results of multiple transformer objects.
Notes
Different to
sklearn.pipeline.make_union. This would letDataFramein andDataFrameout.Examples
>>> from sklearn.decomposition import PCA, TruncatedSVD >>> from dtoolkit.pipeline import make_union >>> make_union(PCA(), TruncatedSVD()) FeatureUnion(transformer_list=[('pca', PCA()), ('truncatedsvd', TruncatedSVD())])