File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -486,17 +486,19 @@ the transformation::
486486 [0.5, 0.5],
487487 [1. , 0. ]])
488488
489- The :func: `~sklearn.compose.make_columntransformer ` function is available
489+ The :func: `~sklearn.compose.make_column_transformer ` function is available
490490to more easily create a :class: `~sklearn.compose.ColumnTransformer ` object.
491491Specifically, the names will be given automatically. The equivalent for the
492492above example would be::
493493
494494 >>> from sklearn.compose import make_column_transformer
495495 >>> column_trans = make_column_transformer(
496496 ... ('city', CountVectorizer(analyzer=lambda x: [x])),
497- ... ('title', CountVectorizer()))
497+ ... ('title', CountVectorizer()),
498+ ... remainder=MinMaxScaler())
498499 >>> column_trans # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
499- ColumnTransformer(n_jobs=None, remainder='drop', sparse_threshold=0.3,
500+ ColumnTransformer(n_jobs=None, remainder=MinMaxScaler(copy=True, ...),
501+ sparse_threshold=0.3,
500502 transformer_weights=None,
501503 transformers=[('countvectorizer-1', ...)
502504
You can’t perform that action at this time.
0 commit comments