srowen 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_r273047988
 
 

 ##########
 File path: 
graphx/src/test/scala/org/apache/spark/graphx/lib/PageRankSuite.scala
 ##########
 @@ -115,7 +115,7 @@ class PageRankSuite extends SparkFunSuite with 
LocalSparkContext {
       assert(compareRanks(staticRanks, dynamicRanks) < errorTol)
 
       val parallelStaticRanks = starGraph
-        .staticParallelPersonalizedPageRank(Array(0), numIter, 
resetProb).mapVertices {
+        .staticParallelPersonalizedPageRank(Array((0, 1.0)), numIter, 
resetProb).mapVertices {
 
 Review comment:
   @EshwarSR if you can add any minimal test of initial scores that aren't 1, 
and probably leave the existing tests, this can be merged

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