Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use rFormulaModel to avoid fitting again
  • Loading branch information
yanboliang committed Apr 12, 2016
commit 292c1b2b41b0e5afda59f2a17b64f31e7c3583f5
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private[r] object GeneralizedLinearRegressionWrapper {
.setTol(epsilon)
.setMaxIter(maxit)
val pipeline = new Pipeline()
.setStages(Array(rFormula, glm))
.setStages(Array(rFormulaModel, glm))
.fit(data)
new GeneralizedLinearRegressionWrapper(pipeline, features)
}
Expand Down