You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhengruifeng (Jira)" <ji...@apache.org> on 2020/08/21 03:28:00 UTC

[jira] [Created] (SPARK-32676) Fix double caching in KMeans/BiKMeans

zhengruifeng created SPARK-32676:
------------------------------------

             Summary: Fix double caching in KMeans/BiKMeans
                 Key: SPARK-32676
                 URL: https://issues.apache.org/jira/browse/SPARK-32676
             Project: Spark
          Issue Type: Improvement
          Components: ML
    Affects Versions: 3.0.0, 3.1.0
            Reporter: zhengruifeng


In the .mllib side, if the storageLevel of input {{data}} is always ignored and cached twice:
{code:java}
@Since("0.8.0")
def run(data: RDD[Vector]): KMeansModel = {
  val instances = data.map(point => (point, 1.0))
  runWithWeight(instances, None)
}{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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