zhengruifeng opened a new pull request #29501:
URL: https://github.com/apache/spark/pull/29501


   ### What changes were proposed in this pull request?
   Fix double caching in KMeans/BiKMeans:
   1, let the callers of `runWithWeight` to decide whether `handlePersistence` 
is needed;
   2, persist and unpersist inside of `runWithWeight`;
   3, persist the `norms` if needed according to the comments;
   
   ### Why are the changes needed?
   avoid double caching
   
   
   ### Does this PR introduce _any_ user-facing change?
   no
   
   
   ### How was this patch tested?
   existing testsuites
   


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to