GitHub user shahidki31 opened a pull request:
https://github.com/apache/spark/pull/21627
[SPARK-24484][MLLIB]Power Iteration Clustering is giving incorrect
clustering results when there are mutiple leading eigen values.
## What changes were proposed in this pull request?



**Method to determine if the top eigen values has same magnitude but
opposite signs**










**So, we need to check if the reileigh coefficient at the convergence is
lesser than the norm of the estimated eigen vector before normalizing**
(Please fill in changes proposed in this fix)
Added a UT
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shahidki31/spark picConvergence
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21627.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21627
----
commit 53fd9da9209c57ef6e90bba85fa9083f49a8619d
Author: Shahid <shahidki31@...>
Date: 2018-06-24T19:30:43Z
Power iteration failed to converge
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
