Skip to content

Commit 1d0e743

Browse files
authored
DOC Use verbose_feature_names_out for verbose feature names out (#60)
1 parent afe57ed commit 1d0e743

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

slep007/proposal.rst

+7-6
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ original features:
106106
- Algorithms that create combinations of a fixed number of features, *e.g.*
107107
``PolynomialFeatures``, as opposed to all of
108108
them where there are many. Note that verbosity considerations and
109-
``verbose_feature_names`` as explained later can apply here.
109+
``verbose_feature_names_out`` as explained later can apply here.
110110

111111
This proposal talks about how feature names are generated and not how they are
112112
propagated.
@@ -244,21 +244,22 @@ However, the following examples produce a somewhat redundant feature names::
244244
Extensions
245245
##########
246246

247-
verbose_feature_names
248-
*********************
247+
verbose_feature_names_out
248+
*************************
249+
249250
To provide more control over feature names, we could add a boolean
250-
``verbose_feature_names`` constructor argument to certain transformers.
251+
``verbose_feature_names_out`` constructor argument to certain transformers.
251252
The default would reflect the description above, but changes would allow more verbose
252253
names in some transformers, say having ``StandardScaler`` map ``'age'`` to ``'scale(age)'``.
253254

254-
In case of the ``ColumnTransformer`` example above ``verbose_feature_names``
255+
In case of the ``ColumnTransformer`` example above ``verbose_feature_names_out``
255256
could remove the estimator names, leading to shorter and less redundant names::
256257

257258
[model, make, numeric0, ..., numeric100] ->
258259
make_column_transformer(
259260
(OneHotEncoder(), ['model', 'make']),
260261
(PCA(n_components=3), ['numeric0', ..., 'numeric100']),
261-
verbose_feature_names=False
262+
verbose_feature_names_out=False
262263
)
263264
get_feature_names_out(): ['model_100', 'model_200', ...,
264265
'make_ABC', 'make_XYZ', ...,

0 commit comments

Comments
 (0)