You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/12/03 16:29:10 UTC

[jira] [Resolved] (SPARK-4039) KMeans support sparse cluster centers

     [ https://issues.apache.org/jira/browse/SPARK-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-4039.
------------------------------
    Resolution: Won't Fix

> KMeans support sparse cluster centers
> -------------------------------------
>
>                 Key: SPARK-4039
>                 URL: https://issues.apache.org/jira/browse/SPARK-4039
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>    Affects Versions: 1.1.0
>            Reporter: Antoine Amend
>              Labels: clustering
>
> When the number of features is not known, it might be quite helpful to create sparse vectors using HashingTF.transform. KMeans transforms centers vectors to dense vectors (https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala#L307), therefore leading to OutOfMemory (even with small k).
> Any way to keep vectors sparse ?



--
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