GitHub user srowen opened a pull request:
https://github.com/apache/spark/pull/15342
[SPARK-11560] [SPARK-3261] [MLLIB] Optimize KMeans implementation / remove
'runs' / KMeans clusterer can return duplicate cluster centers
## What changes were proposed in this pull request?
This is a revival of https://github.com/apache/spark/pull/14948 and related
to https://github.com/apache/spark/pull/14937. This removes the 'runs'
parameter, which has already been disabled, from the K-means implementation and
further deprecates API methods that involve it.
This also happens to resolve the issue that K-means should not return
duplicate centers, meaning that it may return less than k centroids if not
enough data is available.
## How was this patch tested?
Existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/srowen/spark SPARK-11560
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15342.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15342
----
commit cd14b65ac082d728d3a99aeede54c9a7e1f22614
Author: Sean Owen <[email protected]>
Date: 2016-10-04T10:24:03Z
Remove inactive KMeans 'runs' param; allow fewer than k centroids to be
chosen too
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]