Skip to content

Commit 71c8d34

Browse files
jmwolosoqinhanmin2014
authored andcommitted
DOC Added cross-referencing of factory functions with their class counterparts (scikit-learn#11168)
1 parent d582e97 commit 71c8d34

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

sklearn/compose/_column_transformer.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ class ColumnTransformer(_BaseComposition, TransformerMixin):
106106
in the `passthrough` keyword. Those columns specified with `passthrough`
107107
are added at the right to the output of the transformers.
108108
109+
See also
110+
--------
111+
sklearn.compose.make_column_transformer : convenience function for
112+
combining the outputs of multiple transformer objects applied to
113+
column subsets of the original feature space.
114+
109115
Examples
110116
--------
111117
>>> from sklearn.compose import ColumnTransformer
@@ -596,6 +602,12 @@ def make_column_transformer(*transformers, **kwargs):
596602
-------
597603
ct : ColumnTransformer
598604
605+
See also
606+
--------
607+
sklearn.compose.ColumnTransformer : Class that allows combining the
608+
outputs of multiple transformer objects used on column subsets
609+
of the data into a single feature space.
610+
599611
Examples
600612
--------
601613
>>> from sklearn.preprocessing import StandardScaler, CategoricalEncoder

sklearn/pipeline.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ class Pipeline(_BaseComposition):
6868
Read-only attribute to access any step parameter by user given name.
6969
Keys are step names and values are steps parameters.
7070
71+
See also
72+
--------
73+
sklearn.pipeline.make_pipeline : convenience function for simplified
74+
pipeline construction.
75+
7176
Examples
7277
--------
7378
>>> from sklearn import svm
@@ -549,6 +554,11 @@ def make_pipeline(*steps, **kwargs):
549554
inspect estimators within the pipeline. Caching the
550555
transformers is advantageous when fitting is time consuming.
551556
557+
See also
558+
--------
559+
sklearn.pipeline.Pipeline : Class for creating a pipeline of
560+
transforms with a final estimator.
561+
552562
Examples
553563
--------
554564
>>> from sklearn.naive_bayes import GaussianNB
@@ -625,6 +635,11 @@ class FeatureUnion(_BaseComposition, TransformerMixin):
625635
Multiplicative weights for features per transformer.
626636
Keys are transformer names, values the weights.
627637
638+
See also
639+
--------
640+
sklearn.pipeline.make_union : convenience function for simplified
641+
feature union construction.
642+
628643
Examples
629644
--------
630645
>>> from sklearn.pipeline import FeatureUnion
@@ -823,6 +838,11 @@ def make_union(*transformers, **kwargs):
823838
-------
824839
f : FeatureUnion
825840
841+
See also
842+
--------
843+
sklearn.pipeline.FeatureUnion : Class for concatenating the results
844+
of multiple transformer objects.
845+
826846
Examples
827847
--------
828848
>>> from sklearn.decomposition import PCA, TruncatedSVD

0 commit comments

Comments
 (0)