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 <wei.chen.ri...@gmail.com> 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 like to see the weights for each feature
> for the best logistic regression model. I've been looking at the methods
> and attributes of this "cvModel" and "cvModel.bestModel" and still can't
> figure out where these weights are referred. It must be somewhere since we
> can use "cvModel" to transform a new dataframe. Your help is much
> appreciated.
>
>
> Thank you,
> Wei
>



-- 
Wei Chen, Ph.D.
Astronomer and Data Scientist
Phone: (832)646-7124
Email: wei.chen.ri...@gmail.com
LinkedIn: https://www.linkedin.com/in/weichen1984

Reply via email to