Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4039

KMeans support sparse cluster centers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.1.0
    • None
    • MLlib

    Description

      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 ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aamend Antoine Amend
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: