[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
This commit is contained in:
parent
c53c902fa9
commit
45723214e6
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue