Github user mengxr commented on the pull request: https://github.com/apache/spark/pull/117#issuecomment-37372615 I added fast distance computation and updated the implementation of KMeans. Squared norms of the points are pre-computed and cached in order to compute distance faster for sparse data. See the test in KMeansSuite on sparse data, which has dimension 10000 (though many zeros) but runs under 5 seconds.
--- 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. ---