diff options
author | Sean Owen <sowen@cloudera.com> | 2015-02-09 21:13:58 -0800 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-02-09 21:13:58 -0800 |
commit | 36c4e1d75933dc843acb747b91dc12e75ad1df42 (patch) | |
tree | d8b9d06b7b3280aa130487f05874c2f9fccf9128 | |
parent | 31d435ecfdc24a788a6e38f4e82767bc275a3283 (diff) | |
download | spark-36c4e1d75933dc843acb747b91dc12e75ad1df42.tar.gz spark-36c4e1d75933dc843acb747b91dc12e75ad1df42.tar.bz2 spark-36c4e1d75933dc843acb747b91dc12e75ad1df42.zip |
SPARK-4900 [MLLIB] MLlib SingularValueDecomposition ARPACK IllegalStateException
Fix ARPACK error code mapping, at least. It's not yet clear whether the error is what we expect from ARPACK. If it isn't, not sure if that's to be treated as an MLlib or Breeze issue.
Author: Sean Owen <sowen@cloudera.com>
Closes #4485 from srowen/SPARK-4900 and squashes the following commits:
7355aa1 [Sean Owen] Fix ARPACK error code mapping
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala index 9d6f975281..866936aa4f 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala @@ -117,7 +117,7 @@ private[mllib] object EigenValueDecomposition { info.`val` match { case 1 => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` + " Maximum number of iterations taken. (Refer ARPACK user guide for details)") - case 2 => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` + + case 3 => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` + " No shifts could be applied. Try to increase NCV. " + "(Refer ARPACK user guide for details)") case _ => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` + |