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

Distance to each cluster given a point (KMeansModel)

    XMLWordPrintableJSON

Details

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

    Description

      Right now KMeansModel provides only a 'predict 'method which returns the index of the closest cluster.

      https://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/clustering/KMeansModel.html#predict(org.apache.spark.mllib.linalg.Vector)

      It would be nice to have a method giving the distance to all clusters.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdechoux Bertrand Dechoux
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: