spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-21268) Redundant collectAsMap in KMeans
Date Fri, 30 Jun 2017 14:59:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-21268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16070217#comment-16070217
] 

Sean Owen commented on SPARK-21268:
-----------------------------------

You can just update this issue.

> Redundant collectAsMap in KMeans
> --------------------------------
>
>                 Key: SPARK-21268
>                 URL: https://issues.apache.org/jira/browse/SPARK-21268
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>    Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1
>            Reporter: Guillaume Dardelet
>            Priority: Trivial
>              Labels: beginner, easyfix, newbie
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> As I was monitoring the perfomance of my algorithm with SparkUI, I noticed that their
was a "collectAsMap" operation that was done hundreds of time at every iteration of Kmeans:
> https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala#L295
> It would work just as well by performing the following "foreach" on the RDD, and would
slightly improve perfomance.
> Thoughts ?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message