Skip to content

Commit 225b1e3

Browse files
authored
DOC make SLEP007 a more prominent (scikit-learn#31037)
1 parent 082669a commit 225b1e3

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

doc/whats_new/v1.0.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ Changelog
419419

420420
- |API| All estimators store `feature_names_in_` when fitted on pandas Dataframes.
421421
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`.
423424
These ``FutureWarning`` s will become ``ValueError`` s in 1.2. :pr:`18010` by
424425
`Thomas Fan`_.
425426

examples/release_highlights/plot_release_highlights_1_0_0.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@
140140
# When an estimator is passed a `pandas' dataframe
141141
# <https://pandas.pydata.org/docs/user_guide/dsintro.html#dataframe>`_ during
142142
# :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
144146
# when the column names in the dataframe are all strings. `feature_names_in_`
145147
# is used to check that the column names of the dataframe passed in
146148
# non-:term:`fit`, such as :term:`predict`, are consistent with features in

examples/release_highlights/plot_release_highlights_1_1_0.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@
6060
# %%
6161
# `get_feature_names_out` Available in all Transformers
6262
# -----------------------------------------------------
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:
6668
from sklearn.compose import ColumnTransformer
6769
from sklearn.preprocessing import OneHotEncoder, StandardScaler
6870
from sklearn.pipeline import make_pipeline

0 commit comments

Comments
 (0)