You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/12/03 02:24:12 UTC
[jira] [Commented] (SPARK-4708) Make k-mean runs two/three times
faster with dense/sparse sample
[ https://issues.apache.org/jira/browse/SPARK-4708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232428#comment-14232428 ]
Apache Spark commented on SPARK-4708:
-------------------------------------
User 'dbtsai' has created a pull request for this issue:
https://github.com/apache/spark/pull/3565
> Make k-mean runs two/three times faster with dense/sparse sample
> ----------------------------------------------------------------
>
> Key: SPARK-4708
> URL: https://issues.apache.org/jira/browse/SPARK-4708
> Project: Spark
> Issue Type: Improvement
> Components: MLlib
> Reporter: DB Tsai
>
> Note that the usage of `breezeSquaredDistance` in `org.apache.spark.mllib.util.MLUtils.fastSquaredDistance` is in the critical path, and breezeSquaredDistance is slow. We should replace it with our own implementation.
> Here is the benchmark against mnist8m dataset.
> Before
> DenseVector: 70.04secs
> SparseVector: 59.05secs
> With this PR
> DenseVector: 30.58secs
> SparseVector: 21.14secs
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org