[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org