Skip to content

Commit 37e9d07

Browse files
committed
doc
1 parent 2db6a85 commit 37e9d07

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/mllib-linear-methods.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,19 @@ regularization parameter (`regParam`) along with various parameters associated w
628628
gradient descent (`stepSize`, `numIterations`, `miniBatchFraction`). For each of them, we support
629629
all three possible regularizations (none, L1 or L2).
630630

631+
For Logistic Regression, [L-BFGS](api/scala/index.html#org.apache.spark.mllib.optimization.LBFGS)
632+
version is implemented under [LogisticRegressionWithLBFGS]
633+
(api/scala/index.html#org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS), and this
634+
version supports both binary and multinomial Logistic Regression while SGD version only supports
635+
binary Logistic Regression. However, L-BFGS version doesn't support L1 regularization but SGD one
636+
supports L1 regularization. When L1 regularization is not required, L-BFGS version is strongly
637+
recommended since it converges faster and more accurately compared to SGD by approximating the
638+
inverse Hessian matrix using quasi-Newton method.
639+
631640
Algorithms are all implemented in Scala:
632641

633642
* [SVMWithSGD](api/scala/index.html#org.apache.spark.mllib.classification.SVMWithSGD)
643+
* [LogisticRegressionWithLBFGS](api/scala/index.html#org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS)
634644
* [LogisticRegressionWithSGD](api/scala/index.html#org.apache.spark.mllib.classification.LogisticRegressionWithSGD)
635645
* [LinearRegressionWithSGD](api/scala/index.html#org.apache.spark.mllib.regression.LinearRegressionWithSGD)
636646
* [RidgeRegressionWithSGD](api/scala/index.html#org.apache.spark.mllib.regression.RidgeRegressionWithSGD)

0 commit comments

Comments
 (0)