Skip to content
Snippets Groups Projects
Commit 36c4e1d7 authored by Sean Owen's avatar Sean Owen Committed by Xiangrui Meng
Browse files

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
parent 31d435ec
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ private[mllib] object EigenValueDecomposition { ...@@ -117,7 +117,7 @@ private[mllib] object EigenValueDecomposition {
info.`val` match { info.`val` match {
case 1 => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` + case 1 => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` +
" Maximum number of iterations taken. (Refer ARPACK user guide for details)") " 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. " + " No shifts could be applied. Try to increase NCV. " +
"(Refer ARPACK user guide for details)") "(Refer ARPACK user guide for details)")
case _ => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` + case _ => throw new IllegalStateException("ARPACK returns non-zero info = " + info.`val` +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment