spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy Ryza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-2819) Difficult to turn on intercept with linear models
Date Tue, 10 Mar 2015 18:23:38 GMT

    [ https://issues.apache.org/jira/browse/SPARK-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14355398#comment-14355398
] 

Sandy Ryza commented on SPARK-2819:
-----------------------------------

With the pipelines API superceding this, I think we can close this out.

> Difficult to turn on intercept with linear models
> -------------------------------------------------
>
>                 Key: SPARK-2819
>                 URL: https://issues.apache.org/jira/browse/SPARK-2819
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>            Reporter: Sandy Ryza
>
> If I want to train a logistic regression model with default parameters and include an
intercept, I can run:
> val alg = new LogisticRegressionWithSGD()
> alg.setIntercept(true)
> alg.run(data)
> but if I want to set a parameter like numIterations, I need to use
> LogisticRegressionWithSGD.train(data, 50)
> and have no opportunity to turn on the intercept.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message