2
2
3
3
.. currentmodule :: sklearn
4
4
5
+ .. _changes_0_23_2 :
6
+
7
+ Version 0.23.2
8
+ ==============
9
+
10
+ **August 3 2020 **
11
+
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 | ``inertia_ `` attribute of :class: `cluster.KMeans ` and
21
+ :class: `cluster.MiniBatchKMeans `.
22
+
23
+ Details are listed in the changelog below.
24
+
25
+ (While we are trying to better inform users by providing this information, we
26
+ cannot assure that this list is complete.)
27
+
28
+ Changelog
29
+ ---------
30
+
31
+ :mod: `sklearn.cluster `
32
+ ......................
33
+
34
+ - |Fix | Fixed a bug in :class: `cluster.KMeans ` where rounding errors could
35
+ prevent convergence to be declared when `tol=0 `. :pr: `17959 ` by
36
+ :user: `Jérémie du Boisberranger <jeremiedbb> `.
37
+
38
+ - |Fix | Fixed a bug in :class: `cluster.KMeans ` and
39
+ :class: `cluster.MiniBatchKMeans ` where the reported inertia was incorrectly
40
+ weighted by the sample weights. :pr: `17848 ` by
41
+ :user: `Jérémie du Boisberranger <jeremiedbb> `.
42
+
43
+ - |Fix | Fixed a bug in :class: `cluster.MeanShift ` with `bin_seeding=True `. When
44
+ the estimated bandwidth is 0, the behavior is equivalent to
45
+ `bin_seeding=False `.
46
+ :pr: `17742 ` by :user: `Jeremie du Boisberranger <jeremiedbb> `.
47
+
48
+ - |Fix | Fixed a bug in :class: `cluster.AffinityPropagation `, that
49
+ gives incorrect clusters when the array dtype is float32.
50
+ :pr: `17995 ` by :user: `Thomaz Santana <Wikilicious> ` and
51
+ :user: `Amanda Dsouza <amy12xx> `.
52
+
53
+ :mod: `sklearn.decomposition `
54
+ ............................
55
+
56
+ - |Fix | Fixed a bug in
57
+ :func: `decomposition.MiniBatchDictionaryLearning.partial_fit ` which should
58
+ update the dictionary by iterating only once over a mini-batch.
59
+ :pr: `17433 ` by :user: `Chiara Marmo <cmarmo> `.
60
+
61
+ - |Fix | Avoid overflows on Windows in
62
+ :func: `decomposition.IncrementalPCA.partial_fit ` for large ``batch_size `` and
63
+ ``n_samples `` values.
64
+ :pr: `17985 ` by :user: `Alan Butler <aldee153> ` and
65
+ :user: `Amanda Dsouza <amy12xx> `.
66
+
67
+ :mod: `sklearn.ensemble `
68
+ .......................
69
+
70
+ - |Fix | Fixed bug in :class: `ensemble.MultinomialDeviance ` where the
71
+ average of logloss was incorrectly calculated as sum of logloss.
72
+ :pr: `17694 ` by :user: `Markus Rempfler <rempfler> ` and
73
+ :user: `Tsutomu Kusanagi <t-kusanagi2> `.
74
+
75
+ - |Fix | Fixes :class: `ensemble.StackingClassifier ` and
76
+ :class: `ensemble.StackingRegressor ` compatibility with estimators that
77
+ do not define `n_features_in_ `. :pr: `17357 ` by `Thomas Fan `_.
78
+
79
+ :mod: `sklearn.feature_extraction `
80
+ .................................
81
+
82
+ - |Fix | Fixes bug in :class: `feature_extraction.text.CountVectorizer ` where
83
+ sample order invariance was broken when `max_features ` was set and features
84
+ had the same count. :pr: `18016 ` by `Thomas Fan `_, `Roman Yurchak `_, and
85
+ `Joel Nothman `_.
86
+
87
+ :mod: `sklearn.linear_model `
88
+ ...........................
89
+
90
+ - |Fix | :func: `linear_model.lars_path ` does not overwrite `X ` when
91
+ `X_copy=True ` and `Gram='auto' `. :pr: `17914 ` by `Thomas Fan `_.
92
+
93
+ :mod: `sklearn.manifold `
94
+ .......................
95
+
96
+ - |Fix | Fixed a bug where :func: `metrics.pairwise_distances ` would raise an
97
+ error if ``metric='seuclidean' `` and ``X `` is not type ``np.float64 ``.
98
+ :pr: `15730 ` by :user: `Forrest Koch <ForrestCKoch> `.
99
+
100
+ :mod: `sklearn.metrics `
101
+ ......................
102
+
103
+ - |Fix | Fixed a bug in :func: `metrics.mean_squared_error ` where the
104
+ average of multiple RMSE values was incorrectly calculated as the root of the
105
+ average of multiple MSE values.
106
+ :pr: `17309 ` by :user: `Swier Heeres <swierh> `.
107
+
108
+ :mod: `sklearn.pipeline `
109
+ .......................
110
+
111
+ - |Fix | :class: `pipeline.FeatureUnion ` raises a deprecation warning when
112
+ `None ` is included in `transformer_list `. :pr: `17360 ` by `Thomas Fan `_.
113
+
114
+ :mod: `sklearn.utils `
115
+ ....................
116
+
117
+ - |Fix | Fix :func: `utils.estimator_checks.check_estimator ` so that all test
118
+ cases support the `binary_only ` estimator tag.
119
+ :pr: `17812 ` by :user: `Bruno Charron <brcharron> `.
120
+
5
121
.. _changes_0_23_1 :
6
122
7
123
Version 0.23.1
@@ -23,6 +139,7 @@ Changelog
23
139
provided by the user were modified in place. :pr: `17204 ` by
24
140
:user: `Jeremie du Boisberranger <jeremiedbb> `.
25
141
142
+
26
143
Miscellaneous
27
144
.............
28
145
@@ -44,8 +161,6 @@ refer to
44
161
45
162
.. include :: changelog_legend.inc
46
163
47
- Put the changes in their relevant module.
48
-
49
164
Enforcing keyword-only arguments
50
165
--------------------------------
51
166
@@ -171,7 +286,7 @@ Changelog
171
286
deprecated. It has no effect. :pr: `11950 ` by
172
287
:user: `Jeremie du Boisberranger <jeremiedbb> `.
173
288
174
- - |API | The ``random_state `` parameter has been added to
289
+ - |API | The ``random_state `` parameter has been added to
175
290
:class: `cluster.AffinityPropagation `. :pr: `16801 ` by :user: `rcwoolston `
176
291
and :user: `Chiara Marmo <cmarmo> `.
177
292
@@ -364,7 +479,7 @@ Changelog
364
479
for each feature. :pr: `16403 ` by :user: `Narendra Mukherjee <narendramukherjee> `.
365
480
366
481
- |Enhancement | :class: `impute.SimpleImputer `, :class: `impute.KNNImputer `, and
367
- :class: `impute.SimpleImputer ` accepts pandas' nullable integer dtype with
482
+ :class: `impute.IterativeImputer ` accepts pandas' nullable integer dtype with
368
483
missing values. :pr: `16508 ` by `Thomas Fan `_.
369
484
370
485
:mod: `sklearn.inspection `
@@ -467,7 +582,7 @@ Changelog
467
582
an error when `y_true ` and `y_pred ` were length zero and `labels ` was
468
583
not `None `. In addition, we raise an error when an empty list is given to
469
584
the `labels ` parameter.
470
- :pr: `16442 ` by `Kyle Parsons <parsons-kyle-89> `.
585
+ :pr: `16442 ` by :user: `Kyle Parsons <parsons-kyle-89> `.
471
586
472
587
- |API | Changed the formatting of values in
473
588
:meth: `metrics.ConfusionMatrixDisplay.plot ` and
@@ -491,7 +606,7 @@ Changelog
491
606
:pr: `15622 ` by :user: `Gregory Morse <GregoryMorse> `.
492
607
493
608
- |Fix | :func: `model_selection.cross_val_predict ` supports
494
- `method="predict_proba" ` when `y=None `.:pr: `15918 ` by
609
+ `method="predict_proba" ` when `y=None `. :pr: `15918 ` by
495
610
:user: `Luca Kubin <lkubin> `.
496
611
497
612
- |Fix | :func: `model_selection.fit_grid_point ` is deprecated in 0.23 and will
0 commit comments