Github user dbtsai commented on a diff in the pull request: https://github.com/apache/spark/pull/8884#discussion_r40569761 --- Diff: mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala --- @@ -199,8 +238,8 @@ class LinearRegression(override val uid: String) val costFun = new LeastSquaresCostFun(instances, yStd, yMean, $(fitIntercept), $(standardization), featuresStd, featuresMean, effectiveL2RegParam) - - val optimizer = if ($(elasticNetParam) == 0.0 || effectiveRegParam == 0.0) { --- End diff -- Owlqn is an generalized version of lbfgs but can solve L1. So when the solver is lbfgs, and L1 is used, we should use owlqn.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org