Github user thunterdb commented on a diff in the pull request:
https://github.com/apache/spark/pull/16483#discussion_r106532078
--- Diff:
graphx/src/test/scala/org/apache/spark/graphx/lib/PageRankSuite.scala ---
@@ -68,26 +69,34 @@ class PageRankSuite extends SparkFunSuite with
LocalSparkContext {
val nVertices = 100
val starGraph = GraphGenerators.starGraph(sc, nVertices).cache()
val resetProb = 0.15
+ val tol = 0.0001
+ val numIter = 2
val errorTol = 1.0e-5
- val staticRanks1 = starGraph.staticPageRank(numIter = 2,
resetProb).vertices
- val staticRanks2 = starGraph.staticPageRank(numIter = 3,
resetProb).vertices.cache()
+ val staticRanks = starGraph.staticPageRank(numIter,
resetProb).vertices.cache()
+ val staticRanks2 = starGraph.staticPageRank(numIter + 1,
resetProb).vertices
- // Static PageRank should only take 3 iterations to converge
- val notMatching = staticRanks1.innerZipJoin(staticRanks2) { (vid,
pr1, pr2) =>
+ // Static PageRank should only take 2 iterations to converge
--- End diff --
Why does it take only two iterations to converge now?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]