Skip to content

Commit

Permalink
[SPARK-6705][MLLIB] Add fitInterceptTerm to LogisticRegression
Browse files Browse the repository at this point in the history
Whoops, add this to the logisticRegression and not the optimizer
  • Loading branch information
Omede Firouz committed Apr 4, 2015
1 parent 1d6bd6f commit 9f1286b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ class LogisticRegression
}

// Train model
val lr = new LogisticRegressionWithLBFGS
val lr = new LogisticRegressionWithLBFGS()
.setIntercept(paramMap(fitIntercept))
lr.optimizer
.setRegParam(paramMap(regParam))
.setNumIterations(paramMap(maxIter))
.addIntercept(paramMap(fitIntercept))
val oldModel = lr.run(oldDataset)
val lrm = new LogisticRegressionModel(this, paramMap, oldModel.weights, oldModel.intercept)

Expand Down

0 comments on commit 9f1286b

Please sign in to comment.