@@ -41,6 +41,46 @@ Changes impacting all modules
41
41
to work with our estimators and functions.
42
42
:pr: `26464 ` by `Thomas Fan `_.
43
43
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
+
44
84
Changelog
45
85
---------
46
86
@@ -98,13 +138,6 @@ Changelog
98
138
`kdtree ` and `balltree ` values will be removed in 1.6.
99
139
:pr: `26744 ` by :user: `Shreesha Kumar Bhat <Shreesha3112> `.
100
140
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
-
108
141
:mod: `sklearn.cross_decomposition `
109
142
..................................
110
143
@@ -192,30 +225,13 @@ Changelog
192
225
:class: `scipy.sparse.sparray ` subclasses.
193
226
:pr: `27301 ` by :user: `Lohit SundaramahaLingam <lohitslohit> `.
194
227
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
-
205
228
:mod: `sklearn.metrics `
206
229
......................
207
230
208
231
- |Enhancement | :func: `metrics.f_regression ` and :func: `metrics.r_regression ` now
209
232
support SciPy sparse arrays.
210
233
:pr: `27239 ` by :user: `Yaroslav Korobko <Tialo> `.
211
234
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
-
219
235
:mod: `sklearn.preprocessing `
220
236
............................
221
237
@@ -231,24 +247,6 @@ Changelog
231
247
object in the parameter grid if it's an estimator. :pr: `26786 ` by `Adrin
232
248
Jalali `_.
233
249
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
-
252
250
- |Enhancement | :func: `sklearn.model_selection.train_test_split ` now supports
253
251
Array API compatible inputs. :pr: `26855 ` by `Tim Head `_.
254
252
0 commit comments