You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by NinjaYali <ya...@gmail.com> on 2018/01/12 21:23:39 UTC

Using Logistic regression with SGD in Spark ML

Hi All,

I am working on a logistic regression model in spark.ml, and we utilize
org.apache.spark.ml.classification.LogisticRegression. After looking into
the code and doc, it seems like it does not contain SGD as its optimizer.
https://spark.apache.org/docs/2.2.0/api/java/org/apache/spark/ml/classification/LogisticRegression.html

 I have already tried using L-BFGS and want to run SGD as a comparator. I am
wondering whether it is possible to do this in spark.ml framework. If so,
can anyone share some sample code with me for implementing SGD? Thank you!






--
Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org