You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/27 18:54:39 UTC

[GitHub] [spark] EshwarSR commented on a change in pull request #24230: [SPARK-27295][GraphX] Provision to provide the initial scores for source nodes while running Personalized Page Rank

EshwarSR commented on a change in pull request #24230: [SPARK-27295][GraphX] Provision to provide the initial scores for source nodes while running Personalized Page Rank
URL: https://github.com/apache/spark/pull/24230#discussion_r269720132
 
 

 ##########
 File path: graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala
 ##########
 @@ -188,7 +188,7 @@ object PageRank extends Logging {
       graph: Graph[VD, ED],
       numIter: Int,
       resetProb: Double = 0.15,
-      sources: Array[VertexId]): Graph[Vector, Double] = {
+      sources: Array[(VertexId, Double)]): Graph[Vector, Double] = {
 
 Review comment:
   @srowen That sounds like a good idea too. Or should we just use an optional array parameter which has the scores?
   We had an use case where we wanted to run some inferences on the graph and wanted the control on initial values of few of the nodes while running this algorithm.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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