Skip to content

Commit

Permalink
change default value of addIntercept to false
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Mar 31, 2014
1 parent b01df54 commit b9b7ef7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ abstract class GeneralizedLinearModel(val weights: Vector, val intercept: Double
}

/**
* GeneralizedLinearAlgorithm implements methods to train a Genearalized Linear Model (GLM).
* GeneralizedLinearAlgorithm implements methods to train a Generalized Linear Model (GLM).
* This class should be extended with an Optimizer to create a new GLM.
*/
abstract class GeneralizedLinearAlgorithm[M <: GeneralizedLinearModel]
Expand All @@ -81,7 +81,8 @@ abstract class GeneralizedLinearAlgorithm[M <: GeneralizedLinearModel]

val optimizer: Optimizer

protected var addIntercept: Boolean = true
/** Whether to add intercept (default: false). */
protected var addIntercept: Boolean = false

protected var validateData: Boolean = true

Expand Down

0 comments on commit b9b7ef7

Please sign in to comment.