Skip to content
Snippets Groups Projects
Commit 45723214 authored by Shuo Xiang's avatar Shuo Xiang Committed by DB Tsai
Browse files

[SPARK-10336][example] fix not being able to set intercept in LR example

`fitIntercept` is a command line option but not set in the main program.

dbtsai

Author: Shuo Xiang <sxiang@pinterest.com>

Closes #8510 from coderxiang/intercept and squashes the following commits:

57c9b7d [Shuo Xiang] fix not being able to set intercept in LR example
parent c53c902f
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,7 @@ object LogisticRegressionExample {
.setElasticNetParam(params.elasticNetParam)
.setMaxIter(params.maxIter)
.setTol(params.tol)
.setFitIntercept(params.fitIntercept)
stages += lor
val pipeline = new Pipeline().setStages(stages.toArray)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment