File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
examples/release_highlights Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,8 @@ Changelog
419
419
420
420
- |API | All estimators store `feature_names_in_ ` when fitted on pandas Dataframes.
421
421
These feature names are compared to names seen in non-`fit ` methods, e.g.
422
- `transform ` and will raise a `FutureWarning ` if they are not consistent.
422
+ `transform ` and will raise a `FutureWarning ` if they are not consistent, see also
423
+ :ref: `sphx_glr_auto_examples_release_highlights_plot_release_highlights_1_0_0.py `.
423
424
These ``FutureWarning `` s will become ``ValueError `` s in 1.2. :pr: `18010 ` by
424
425
`Thomas Fan `_.
425
426
Original file line number Diff line number Diff line change 140
140
# When an estimator is passed a `pandas' dataframe
141
141
# <https://pandas.pydata.org/docs/user_guide/dsintro.html#dataframe>`_ during
142
142
# :term:`fit`, the estimator will set a `feature_names_in_` attribute
143
- # containing the feature names. Note that feature names support is only enabled
143
+ # containing the feature names. This is a part of
144
+ # `SLEP007 <https://scikit-learn-enhancement-proposals.readthedocs.io/en/latest/slep007/proposal.html>`__.
145
+ # Note that feature names support is only enabled
144
146
# when the column names in the dataframe are all strings. `feature_names_in_`
145
147
# is used to check that the column names of the dataframe passed in
146
148
# non-:term:`fit`, such as :term:`predict`, are consistent with features in
Original file line number Diff line number Diff line change 60
60
# %%
61
61
# `get_feature_names_out` Available in all Transformers
62
62
# -----------------------------------------------------
63
- # :term:`get_feature_names_out` is now available in all Transformers. This enables
64
- # :class:`~pipeline.Pipeline` to construct the output feature names for more complex
65
- # pipelines:
63
+ # :term:`get_feature_names_out` is now available in all transformers, thereby
64
+ # concluding the implementation of
65
+ # `SLEP007 <https://scikit-learn-enhancement-proposals.readthedocs.io/en/latest/slep007/proposal.html>`__.
66
+ # This enables :class:`~pipeline.Pipeline` to construct the output feature names for
67
+ # more complex pipelines:
66
68
from sklearn .compose import ColumnTransformer
67
69
from sklearn .preprocessing import OneHotEncoder , StandardScaler
68
70
from sklearn .pipeline import make_pipeline
You can’t perform that action at this time.
0 commit comments