Re: how to get weights of logistic regression model inside cross validator model?

2016-04-20 Thread Wei Chen
Found it. In case someone else if looking for this: cvModel.bestModel.asInstanceOf[org.apache.spark.ml.classification.LogisticRegressionModel].weights On Tue, Apr 19, 2016 at 1:12 PM, Wei Chen wrote: > Hi All, > > I am using the example of model selection via cross-validation from the > document

Re: how to get weights of logistic regression model inside cross validator model?

2016-04-20 Thread Wei Chen
Forgot to mention, I am using 1.5.2 Scala version. On Tue, Apr 19, 2016 at 1:12 PM, Wei Chen wrote: > Hi All, > > I am using the example of model selection via cross-validation from the > documentation here: http://spark.apache.org/docs/latest/ml-guide.html. > After I get the "cvModel", I would

how to get weights of logistic regression model inside cross validator model?

2016-04-19 Thread Wei Chen
Hi All, I am using the example of model selection via cross-validation from the documentation here: http://spark.apache.org/docs/latest/ml-guide.html. After I get the "cvModel", I would like to see the weights for each feature for the best logistic regression model. I've been looking at the method