srowen commented on a change in pull request #24531: [SPARK-27636][MLLIB]Remove 
cached RDD blocks after PIC execution
URL: https://github.com/apache/spark/pull/24531#discussion_r281808137
 
 

 ##########
 File path: 
mllib/src/main/scala/org/apache/spark/mllib/clustering/PowerIterationClustering.scala
 ##########
 @@ -205,7 +207,10 @@ class PowerIterationClustering private[clustering] (
       case "random" => randomInit(w)
       case "degree" => initDegreeVector(w)
     }
-    pic(w0)
+
+   // Materialized the graph w0 in randomInit/initDegreeVector, hence we can 
unpersist w.
 
 Review comment:
   Oops, one more nit: this needs to indent 1 more space

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

Reply via email to