Using Logistic regression with SGD in Spark ML

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using Logistic regression with SGD in Spark ML

NinjaYali
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: [hidden email]