spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yanbo Liang (JIRA)" <>
Subject [jira] [Commented] (SPARK-11918) WLS can not resolve some kinds of equation
Date Mon, 23 Nov 2015 09:24:11 GMT


Yanbo Liang commented on SPARK-11918:

[~sowen] Thanks for your comments. I think you have got part of my proposal at
I also wonder that whether we can give better hint for users if they are in the same condition.

> WLS can not resolve some kinds of equation
> ------------------------------------------
>                 Key: SPARK-11918
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: ML
>            Reporter: Yanbo Liang
>         Attachments: R_GLM_output
> Weighted Least Squares (WLS) is one of the optimization method for solve Linear Regression
(when #feature < 4096). But if the dataset is very ill condition (such as 0-1 based label
used for classification and the equation is underdetermined), the WLS failed (But "l-bfgs"
can train and get the model). The failure is caused by the underneath lapack library return
error value when Cholesky decomposition.
> This issue is easy to reproduce, you can train a LinearRegressionModel by "normal" solver
with the example dataset(
The following is the exception:
> {code}
> assertion failed: lapack.dpotrs returned 1.
> java.lang.AssertionError: assertion failed: lapack.dpotrs returned 1.
> 	at scala.Predef$.assert(Predef.scala:179)
> 	at org.apache.spark.mllib.linalg.CholeskyDecomposition$.solve(CholeskyDecomposition.scala:42)
> 	at
> 	at
> 	at
> 	at
> {code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message