Skip to content

Commit

Permalink
fix suite and remove duplicated setMaxIter
Browse files Browse the repository at this point in the history
  • Loading branch information
DB Tsai committed Jun 2, 2015
1 parent 136e0dd commit 6bb6d77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ object LogisticRegressionExample {
.setElasticNetParam(params.elasticNetParam)
.setMaxIter(params.maxIter)
.setTol(params.tol)
.setMaxIter(params.maxIter)

stages += lor
val pipeline = new Pipeline().setStages(stages.toArray)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ParamsSuite extends SparkFunSuite {
import solver.{maxIter, inputCol}

assert(maxIter.name === "maxIter")
assert(maxIter.doc === "max number of iterations (>= 0)")
assert(maxIter.doc === "maximum number of iterations (>= 0)")
assert(maxIter.parent === uid)
assert(maxIter.toString === s"${uid}__maxIter")
assert(!maxIter.isValid(-1))
Expand Down

0 comments on commit 6bb6d77

Please sign in to comment.