8000 [MRG] add whats_new entry for KMeans sample weight support (#11119) · scikit-learn/scikit-learn@fd55996 · GitHub
[go: up one dir, main page]

Skip to content
Sign in

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd55996

Browse files
jnhansenTomDLT
authored andcommitted
[MRG] add whats_new entry for KMeans sample weight support (#11119)
1 parent 4b24fbe commit fd55996

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/whats_new/v0.20.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ Decomposition, manifold learning and clustering
112112
clustering via ``linkage='single'``. :issue:`9372` by
113113
:user:`Leland McInnes <lmcinnes>` and :user:`Steve Astels <sastels>`.
114114

115+
- :class:`cluster.KMeans` and :class:`cluster.MiniBatchKMeans` now support
116+
sample weights via new parameter ``sample_weight`` in ``fit`` function.
117+
:issue:`10933` by :user:`Johannes Hansen <jnhansen>`.
118+
115119
Metrics
116120

117121
- Partial AUC is available via ``max_fpr`` parameter in
@@ -160,7 +164,7 @@ Classifiers and regressors
160164
:class:`neighbors.RadiusNeighborsClassifier` are now
161165
parallelized according to ``n_jobs`` regardless of ``algorithm``.
162166
:issue:`8003` by :user:`Joël Billaud <recamshak>`.
163-
167+
164168
- Memory usage improvement for :func:`_class_means` and :func:`_class_cov`
165169
in :class:`discriminant_analysis`.
166170
:issue:`10898` by :user:`Nanxin Chen <bobchennan>`.`
@@ -190,7 +194,7 @@ Preprocessing
190194

191195
- :class:`preprocessing.PolynomialFeatures` now supports sparse input.
192196
:issue:`10452` by :user:`Aman Dalmia <dalmia>` and `Joel Nothman`_.
193-
197+
194198
- Enable the call to :meth:`get_feature_names` in unfitted
195199
:class:`feature_extraction.text.CountVectorizer` initialized with a
196200
vocabulary. :issue:`10908` by :user:`Mohamed Maskani <maskani-moh>`.
@@ -611,3 +615,8 @@ Changes to estimator checks
611615
- Add tests in :func:`estimator_checks.check_estimator` to check that an
612616
estimator can handle read-only 5E33 memmap input data. :issue:`10663` by
613617
:user:`Arthur Mensch <arthurmensch>` and :user:`Loïc Estève <lesteve>`.
618+
619+
- :func:`estimator_checks.check_sample_weights_pandas_series` now uses 8 rather
620+
than 6 samples to accommodate for the default number of clusters in
621+
:class:`cluster.KMeans`.
622+
:issue:`10933` by :user:`Johannes Hansen <jnhansen>`.

0 commit comments

Comments
 (0)
0