If you are using Scala/Java or pyspark.mllib.classification.LogisticRegressionModel, you should be able to call weights and intercept to get the model coefficients. If you are using the pipeline API in Python, you can try model._java_model.weights(), we are going to add a method to get the weights directly. Btw, if you are on the master branch, you can call model.save(sc, path) to persist models on disk and LogisticRegression.load(sc, path) to load it back. -Xiangrui
On Tue, Apr 14, 2015 at 1:22 PM, Jianguo Li <flyingfromch...@gmail.com> wrote: > Hi, > > I am training a model using the logistic regression algorithm in ML. I was > wondering if there is any API to access the weight vectors (aka the > co-efficients for each feature). I need those co-efficients for real time > predictions. > > Thanks, > > Jianguo --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org