zhengruifeng commented on a change in pull request #27014:
[SPARK-29967][ML][FOLLOWUP] KMeans Cleanup
URL: https://github.com/apache/spark/pull/27014#discussion_r361407783
##########
File path: mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala
##########
@@ -232,7 +232,7 @@ class KMeans private (
val zippedData = data.zip(norms).map { case ((v, w), norm) =>
(new VectorWithNorm(v, norm), w)
}
- zippedData.persist()
+ zippedData.persist(StorageLevel.MEMORY_AND_DISK)
Review comment:
Keep in line with other intermediate RDDs persisted in KMeans
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]