From da25e249a2dd292349b1ae5baf13584f78f0d7b6 Mon Sep 17 00:00:00 2001 From: Xiangrui Meng Date: Mon, 31 Mar 2014 14:21:28 -0700 Subject: [PATCH] revert the change to default addIntercept because it might change the behavior of existing code without warning --- .../spark/mllib/regression/GeneralizedLinearAlgorithm.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/regression/GeneralizedLinearAlgorithm.scala b/mllib/src/main/scala/org/apache/spark/mllib/regression/GeneralizedLinearAlgorithm.scala index a063ae9d64bec..80dc0f12ff84f 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/regression/GeneralizedLinearAlgorithm.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/regression/GeneralizedLinearAlgorithm.scala @@ -81,8 +81,8 @@ abstract class GeneralizedLinearAlgorithm[M <: GeneralizedLinearModel] val optimizer: Optimizer - /** Whether to add intercept (default: false). */ - protected var addIntercept: Boolean = false + /** Whether to add intercept (default: true). */ + protected var addIntercept: Boolean = true protected var validateData: Boolean = true