Skip to content

Commit 04b3a5c

Browse files
authored
DOC SLEP6: move changed models to a single section (scikit-learn#27386)
1 parent 4eabb0e commit 04b3a5c

File tree

1 file changed

+40
-42
lines changed

1 file changed

+40
-42
lines changed

doc/whats_new/v1.4.rst

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,46 @@ Changes impacting all modules
4141
to work with our estimators and functions.
4242
:pr:`26464` by `Thomas Fan`_.
4343

44+
Metadata Routing
45+
----------------
46+
47+
The following models now support metadata routing in one or more or their
48+
methods. Refer to the :ref:`Metadata Routing User Guide <metadata_routing>` for
49+
more details.
50+
51+
- |Enhancement| :class:`~compose.ColumnTransformer` now supports metadata routing
52+
according to :ref:`metadata routing user guide <metadata_routing>`. :pr:`27005`
53+
by `Adrin Jalali`_.
54+
55+
- |Enhancement| :class:`linear_model.LogisticRegressionCV` now supports
56+
metadata routing. :meth:`linear_model.LogisticRegressionCV.fit` now
57+
accepts ``**params`` which are passed to the underlying splitter and
58+
scorer. :meth:`linear_model.LogisticRegressionCV.score` now accepts
59+
``**score_params`` which are passed to the underlying scorer.
60+
:pr:`26525` by :user:`Omar Salman <OmarManzoor>`.
61+
62+
- |Feature| :class:`pipeline.Pipeline` now supports metadata routing according
63+
to :ref:`metadata routing user guide <metadata_routing>`. :pr:`26789` by
64+
`Adrin Jalali`_.
65+
66+
- |Feature| :func:`~model_selection.cross_validate`,
67+
:func:`~model_selection.cross_val_score`, and
68+
:func:`~model_selection.cross_val_predict` now support metadata routing. The
69+
metadata are routed to the estimator's `fit`, the scorer, and the CV
70+
splitter's `split`. The metadata is accepted via the new `params` parameter.
71+
`fit_params` is deprecated and will be removed in version 1.6. `groups`
72+
parameter is also not accepted as a separate argument when metadata routing
73+
is enabled and should be passed via the `params` parameter. :pr:`26896` by
74+
`Adrin Jalali`_.
75+
76+
- |Feature| :class:`~model_selection.GridSearchCV`,
77+
:class:`~model_selection.RandomizedSearchCV`,
78+
:class:`~model_selection.HalvingGridSearchCV`, and
79+
:class:`~model_selection.HalvingRandomSearchCV` now support metadata routing
80+
in their ``fit`` and ``score``, and route metadata to the underlying
81+
estimator's ``fit``, the CV splitter, and the scorer. :pr:`27058` by `Adrin
82+
Jalali`_.
83+
4484
Changelog
4585
---------
4686

@@ -98,13 +138,6 @@ Changelog
98138
`kdtree` and `balltree` values will be removed in 1.6.
99139
:pr:`26744` by :user:`Shreesha Kumar Bhat <Shreesha3112>`.
100140

101-
:mod:`sklearn.compose`
102-
......................
103-
104-
- |Enhancement| :class:`~compose.ColumnTransformer` now supports metadata routing
105-
according to :ref:`metadata routing user guide <metadata_routing>`. :pr:`27005`
106-
by `Adrin Jalali`_.
107-
108141
:mod:`sklearn.cross_decomposition`
109142
..................................
110143

@@ -192,30 +225,13 @@ Changelog
192225
:class:`scipy.sparse.sparray` subclasses.
193226
:pr:`27301` by :user:`Lohit SundaramahaLingam <lohitslohit>`.
194227

195-
:mod:`sklearn.linear_model`
196-
...........................
197-
198-
- |Enhancement| :class:`linear_model.LogisticRegressionCV` now supports
199-
metadata routing. :meth:`linear_model.LogisticRegressionCV.fit` now
200-
accepts ``**params`` which are passed to the underlying splitter and
201-
scorer. :meth:`linear_model.LogisticRegressionCV.score` now accepts
202-
``**score_params`` which are passed to the underlying scorer.
203-
:pr:`26525` by :user:`Omar Salman <OmarManzoor>`.
204-
205228
:mod:`sklearn.metrics`
206229
......................
207230

208231
- |Enhancement| :func:`metrics.f_regression` and :func:`metrics.r_regression` now
209232
support SciPy sparse arrays.
210233
:pr:`27239` by :user:`Yaroslav Korobko <Tialo>`.
211234

212-
:mod:`sklearn.pipeline`
213-
.......................
214-
215-
- |Feature| :class:`pipeline.Pipeline` now supports metadata routing according
216-
to :ref:`metadata routing user guide <metadata_routing>`. :pr:`26789` by
217-
`Adrin Jalali`_.
218-
219235
:mod:`sklearn.preprocessing`
220236
............................
221237

@@ -231,24 +247,6 @@ Changelog
231247
object in the parameter grid if it's an estimator. :pr:`26786` by `Adrin
232248
Jalali`_.
233249

234-
- |Feature| :func:`~model_selection.cross_validate`,
235-
:func:`~model_selection.cross_val_score`, and
236-
:func:`~model_selection.cross_val_predict` now support metadata routing. The
237-
metadata are routed to the estimator's `fit`, the scorer, and the CV
238-
splitter's `split`. The metadata is accepted via the new `params` parameter.
239-
`fit_params` is deprecated and will be removed in version 1.6. `groups`
240-
parameter is also not accepted as a separate argument when metadata routing
241-
is enabled and should be passed via the `params` parameter. :pr:`26896` by
242-
`Adrin Jalali`_.
243-
244-
- |Feature| :class:`~model_selection.GridSearchCV`,
245-
:class:`~model_selection.RandomizedSearchCV`,
246-
:class:`~model_selection.HalvingGridSearchCV`, and
247-
:class:`~model_selection.HalvingRandomSearchCV` now support metadata routing
248-
in their ``fit`` and ``score``, and route metadata to the underlying
249-
estimator's ``fit``, the CV splitter, and the scorer. :pr:`27058` by `Adrin
250-
Jalali`_.
251-
252250
- |Enhancement| :func:`sklearn.model_selection.train_test_split` now supports
253251
Array API compatible inputs. :pr:`26855` by `Tim Head`_.
254252

0 commit comments

Comments
 (0)