Description
Currently linear regression uses weighted least squares to solve the normal equations locally on the driver when the dimensionality is small (<4096). Weighted least squares uses a Cholesky decomposition to solve the problem with L2 regularization (which has a closed-form solution). We can support L1/elasticnet penalties by solving the equations locally using OWL-QN solver.
Also note that Cholesky does not handle singular covariance matrices, but L-BFGS and OWL-QN are capable of providing reasonable solutions. This patch can also add support for solving singular covariance matrices by also adding L-BFGS.
Attachments
Attachments
Issue Links
- Is contained by
-
SPARK-17692 Document ML/MLlib behavior changes in Spark 2.1
- Resolved
- is depended upon by
-
SPARK-17824 QR solver for WeightedLeastSquares
- Resolved
- is related to
-
SPARK-18705 Docs for one-pass solver for linear regression with L1 and elastic-net penalties
- Resolved
- relates to
-
SPARK-18341 Eliminate use of SingularMatrixException in WeightedLeastSquares logic
- Resolved
- links to