Skip to content

Commit 6b60732

Browse files
authored
DOC move some fixes from 1.4 to 1.3.1 (scikit-learn#27402)
1 parent 3ccb9eb commit 6b60732

File tree

2 files changed

+52
-39
lines changed

2 files changed

+52
-39
lines changed

doc/whats_new/v1.3.rst

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ Version 1.3.1
99

1010
**In development**
1111

12+
Changed models
13+
--------------
14+
15+
The following estimators and functions, when fit with the same data and
16+
parameters, may produce different models from the previous version. This often
17+
occurs due to changes in the modelling logic (bug fixes or enhancements), or in
18+
random sampling procedures.
19+
20+
- |Fix| Ridge models with `solver='sparse_cg'` may have slightly different
21+
results with scipy>=1.12, because of an underlying change in the scipy solver
22+
(see `scipy#18488 <https://github.com/scipy/scipy/pull/18488>`_ for more
23+
details)
24+
:pr:`26814` by :user:`Loïc Estève <lesteve>`
25+
1226
Changes impacting all modules
1327
-----------------------------
1428

@@ -18,6 +32,13 @@ Changes impacting all modules
1832
Changelog
1933
---------
2034

35+
:mod:`sklearn.calibration`
36+
..........................
37+
38+
- |Fix| :class:`calibration.CalibratedClassifierCV` can now handle models that
39+
produce large prediction scores. Before it was numerically unstable.
40+
:pr:`26913` by :user:`Omar Salman <OmarManzoor>`.
41+
2142
:mod:`sklearn.cluster`
2243
......................
2344

@@ -26,7 +47,14 @@ Changelog
2647
:pr:`27167` by `Olivier Grisel`_.
2748

2849
- |Fix| :class:`cluster.BisectingKMeans` now works with data that has a single feature.
29-
:pr:`27243` by `Jérémie du Boisberranger <jeremiedbb>`.
50+
:pr:`27243` by :user:`Jérémie du Boisberranger <jeremiedbb>`.
51+
52+
:mod:`sklearn.cross_decomposition`
53+
..................................
54+
55+
- |Fix| :class:`cross_decomposition.PLSRegression` now automatically ravels the output
56+
of `predict` if fitted with one dimensional `y`.
57+
:pr:`26602` by :user:`Yao Xiao <Charlie-XIAO>`.
3058

3159
:mod:`sklearn.ensemble`
3260
.......................
@@ -36,6 +64,12 @@ Changelog
3664
the sum of the scores should sum to zero for a sample).
3765
:pr:`26521` by :user:`Guillaume Lemaitre <glemaitre>`.
3866

67+
:mod:`sklearn.feature_selection`
68+
................................
69+
70+
- |Fix| :func:`feature_selection.mutual_info_regression` now correctly computes the
71+
result when `X` is of integer dtype. :pr:`26748` by :user:`Yao Xiao <Charlie-XIAO>`.
72+
3973
:mod:`sklearn.impute`
4074
.....................
4175

@@ -44,12 +78,20 @@ Changelog
4478
during ``fit``. :pr:`26600` by :user:`Shreesha Kumar Bhat <Shreesha3112>`.
4579

4680
:mod:`sklearn.metrics`
47-
.......................
81+
......................
4882

4983
- |Fix| Scorers used with :func:`metrics.get_scorer` handle properly
5084
multilabel-indicator matrix.
5185
:pr:`27002` by :user:`Guillaume Lemaitre <glemaitre>`.
5286

87+
:mod:`sklearn.mixture`
88+
......................
89+
90+
- |Fix| The initialization of :class:`mixture.GaussianMixture` from user-provided
91+
`precisions_init` for `covariance_type` of `full` or `tied` was not correct,
92+
and has been fixed.
93+
:pr:`26416` by :user:`Yang Tao <mchikyt3>`.
94+
5395
:mod:`sklearn.neighbors`
5496
........................
5597

@@ -65,12 +107,20 @@ Changelog
65107
when the input to the `param_distributions` parameter is a list of dicts.
66108
:pr:`26893` by :user:`Stefanie Senger <StefanieSenger>`.
67109

110+
- |Fix| Neighbors based estimators now correctly work when `metric="minkowski"` and the
111+
metric parameter `p` is in the range `0 < p < 1`, regardless of the `dtype` of `X`.
112+
:pr:`26760` by :user:`Shreesha Kumar Bhat <Shreesha3112>`.
113+
68114
:mod:`sklearn.preprocessing`
69115
............................
70116

71117
- |Fix| :class:`preprocessing.LabelEncoder` correctly accepts `y` as a keyword
72118
argument. :pr:`26940` by `Thomas Fan`_.
73119

120+
- |Fix| :class:`preprocessing.OneHotEncoder` shows a more informative error message
121+
when `sparse_output=True` and the output is configured to be pandas.
122+
:pr:`26931` by `Thomas Fan`_.
123+
74124
:mod:`sklearn.tree`
75125
...................
76126

doc/whats_new/v1.4.rst

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ parameters, may produce different models from the previous version. This often
1919
occurs due to changes in the modelling logic (bug fixes or enhancements), or in
2020
random sampling procedures.
2121

22-
- |Fix| The initialization of :class:`mixture.GaussianMixture` from user-provided
23-
`precisions_init` for `covariance_type` of `full` or `tied` was not correct,
24-
and has been fixed.
25-
:pr:`26416` by :user:`Yang Tao <mchikyt3>`.
26-
27-
- |Fix| Ridge models with `solver='sparse_cg'` may have slightly different
28-
results with scipy>=1.12, because of an underlying change in the scipy solver
29-
(see `scipy#18488 <https://github.com/scipy/scipy/pull/18488>`_ for more
30-
details)
31-
:pr:`26814` by :user:`Loïc Estève <lesteve>`
32-
33-
3422
Changes impacting all modules
3523
-----------------------------
3624

@@ -121,10 +109,6 @@ Changelog
121109
:mod:`sklearn.calibration`
122110
..........................
123111

124-
- |Fix| :class:`calibration.CalibratedClassifierCV` can now handle models that
125-
produce large prediction scores. Before it was numerically unstable.
126-
:pr:`26913` by :user:`Omar Salman <OmarManzoor>`.
127-
128112
- |Enhancement| The internal objective and gradient of the `sigmoid` method
129113
of :class:`calibration.CalibratedClassifierCV` have been replaced by the
130114
private loss module. :pr:`27185` by :user:`Omar Salman <OmarManzoor>`.
@@ -138,13 +122,6 @@ Changelog
138122
`kdtree` and `balltree` values will be removed in 1.6.
139123
:pr:`26744` by :user:`Shreesha Kumar Bhat <Shreesha3112>`.
140124

141-
:mod:`sklearn.cross_decomposition`
142-
..................................
143-
144-
- |Fix| :class:`cross_decomposition.PLSRegression` now automatically ravels the output
145-
of `predict` if fitted with one dimensional `y`.
146-
:pr:`26602` by :user:`Yao Xiao <Charlie-XIAO>`.
147-
148125
:mod:`sklearn.decomposition`
149126
............................
150127

@@ -204,12 +181,6 @@ Changelog
204181
SciPy sparse arrays.
205182
:pr:`27219` by :user:`Yao Xiao <Charlie-XIAO>`.
206183

207-
:mod:`sklearn.feature_selection`
208-
................................
209-
210-
- |Fix| :func:`feature_selection.mutual_info_regression` now correctly computes the
211-
result when `X` is of integer dtype. :pr:`26748` by :user:`Yao Xiao <Charlie-XIAO>`.
212-
213184
:mod:`sklearn.impute`
214185
.....................
215186

@@ -270,21 +241,13 @@ Changelog
270241
pairs of dense and sparse datasets.
271242
:pr:`27018` by :user:`Julien Jerphanion <jjerphan>`.
272243

273-
- |Fix| Neighbors based estimators now correctly work when `metric="minkowski"` and the
274-
metric parameter `p` is in the range `0 < p < 1`, regardless of the `dtype` of `X`.
275-
:pr:`26760` by :user:`Shreesha Kumar Bhat <Shreesha3112>`.
276-
277244
:mod:`sklearn.preprocessing`
278245
............................
279246

280247
- |Efficiency| :class:`preprocessing.OrdinalEncoder` avoids calculating
281248
missing indices twice to improve efficiency.
282249
:pr:`27017` by :user:`Xuefeng Xu <xuefeng-xu>`.
283250

284-
- |Fix| :class:`preprocessing.OneHotEncoder` shows a more informative error message
285-
when `sparse_output=True` and the output is configured to be pandas.
286-
:pr:`26931` by `Thomas Fan`_.
287-
288251
- |MajorFeature| :class:`preprocessing.MinMaxScaler` and :class:`preprocessing.MaxAbsScaler` now
289252
support the `Array API <https://data-apis.org/array-api/latest/>`_. Array API
290253
support is considered experimental and might evolve without being subject to

0 commit comments

Comments
 (0)