[
https://issues.apache.org/jira/browse/SPARK-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14212854#comment-14212854
]
Sandy Ryza commented on SPARK-2819:
-----------------------------------
Yes, as far as I can tell there are still no public APIs that allow both
turning on the intercept and specifying a number of runs.
> 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: [email protected]
For additional commands, e-mail: [email protected]