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

One part of Spark MLlib Kmean Logic Performance problem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.2
    • 3.0.0
    • MLlib
    • None

    Description

      In function fastSquaredDistance, there is a low performance logic:

      the sqDist = Vectors.sqdist(v1, v2) is better than sqDist = sumSquaredNorm - 2.0 * dot(v1, v2) in calculation performance

      So get rid of the low performance login in function fastSquaredDistance.

      More test(End-to-End, function) situation can be found in https://github.com/apache/spark/pull/22893

      Already update a patch #22893 for merge

       

       

      Attachments

        Activity

          People

            KyleLi1985 Liang Li
            KyleLi1985 Liang Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: