You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Arunkumar Pillai <ar...@gmail.com> on 2016/02/19 06:27:01 UTC

Logistic Regression using ML Pipeline

Hi

I'm trying to build logistic regression using ML Pipeline

 val lr = new LogisticRegression()

    lr.setFitIntercept(true)
    lr.setMaxIter(100)
    val model = lr.fit(data)

    println(model.summary)

I'm getting coefficients but not able to get the predicted and probability
values.

Please help

-- 
Thanks and Regards
        Arun

Re: Logistic Regression using ML Pipeline

Posted by Ajinkya Kale <ka...@gmail.com>.
Please take a look at the example here
http://spark.apache.org/docs/latest/ml-guide.html#example-pipeline

On Thu, Feb 18, 2016 at 9:27 PM Arunkumar Pillai <ar...@gmail.com>
wrote:

> Hi
>
> I'm trying to build logistic regression using ML Pipeline
>
>  val lr = new LogisticRegression()
>
>     lr.setFitIntercept(true)
>     lr.setMaxIter(100)
>     val model = lr.fit(data)
>
>     println(model.summary)
>
> I'm getting coefficients but not able to get the predicted and probability
> values.
>
> Please help
>
> --
> Thanks and Regards
>         Arun
>