Sandy Ryza created SPARK-2819:
---------------------------------

             Summary: 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.2#6252)

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

Reply via email to