GitHub user jkbradley opened a pull request:

    https://github.com/apache/spark/pull/1468

    Added check to LocalKMeans.scala: kMeansPlusPlus initialization to handl...

    ...e case with fewer distinct data points than clusters k.  Added two 
related unit tests to KMeansSuite.  (Re-submitting PR after tangling commits in 
PR 1407 https://github.com/apache/spark/pull/1407 )

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jkbradley/spark kmeans-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/1468.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 #1468
    
----
commit 6c7a2ecba148a6e89e8594d9131d5550bd9f17df
Author: Joseph K. Bradley <joseph.kurata.brad...@gmail.com>
Date:   2014-07-12T01:12:44Z

    Added check to LocalKMeans.scala: kMeansPlusPlus initialization to handle 
case with fewer distinct data points than clusters k.  Added two related unit 
tests to KMeansSuite.

commit 4e9bd1ee7e174aaa998b899af5e11d376153f09d
Author: Joseph K. Bradley <joseph.kurata.brad...@gmail.com>
Date:   2014-07-17T19:23:55Z

    Updated PR per comments from mengxr

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to