Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DB Tsai committed Dec 26, 2014
1 parent f9ed2b6 commit ec3c989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class LassoModel (
/**
* Train a regression model with L1-regularization using Stochastic Gradient Descent.
* This solves the l1-regularized least squares regression formulation
* f(weights) = 1/n ||A weights-y||^2 + regParam ||weights||_1
* f(weights) = 1/2n ||A weights-y||^2 + regParam ||weights||_1
* Here the data matrix has n rows, and the input RDD holds the set of rows of A, each with
* its corresponding right hand side label y.
* See also the documentation for the precise formulation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RidgeRegressionModel (
/**
* Train a regression model with L2-regularization using Stochastic Gradient Descent.
* This solves the l1-regularized least squares regression formulation
* f(weights) = 1/n ||A weights-y||^2 + regParam/2 ||weights||^2
* f(weights) = 1/2n ||A weights-y||^2 + regParam/2 ||weights||^2
* Here the data matrix has n rows, and the input RDD holds the set of rows of A, each with
* its corresponding right hand side label y.
* See also the documentation for the precise formulation.
Expand Down

0 comments on commit ec3c989

Please sign in to comment.