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_r277242417
##########
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:
I tried running the old implementation with hardcoded 1.0 as initial scores.
Even the scores from that and networkx dont match. I'm sort of confused what is
going wrong. I guess I need to see the networkx implementation to understand
the exact difference between the implementations.
----------------------------------------------------------------
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]