You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sandy Ryza (JIRA)" <ji...@apache.org> on 2015/03/10 19:23:39 UTC
[jira] [Comment Edited] (SPARK-2819) Difficult to turn on intercept
with linear models
[ https://issues.apache.org/jira/browse/SPARK-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14355398#comment-14355398 ]
Sandy Ryza edited comment on SPARK-2819 at 3/10/15 6:23 PM:
------------------------------------------------------------
With the pipelines API superseding this, I think we can close this out.
was (Author: sandyr):
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