File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
mllib/src/main/scala/org/apache/spark/mllib/regression Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class LassoModel (
45
45
/**
46
46
* Train a regression model with L1-regularization using Stochastic Gradient Descent.
47
47
* This solves the l1-regularized least squares regression formulation
48
- * f(weights) = 1/n ||A weights-y||^2 + regParam ||weights||_1
48
+ * f(weights) = 1/2n ||A weights-y||^2 + regParam ||weights||_1
49
49
* Here the data matrix has n rows, and the input RDD holds the set of rows of A, each with
50
50
* its corresponding right hand side label y.
51
51
* See also the documentation for the precise formulation.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class RidgeRegressionModel (
45
45
/**
46
46
* Train a regression model with L2-regularization using Stochastic Gradient Descent.
47
47
* This solves the l1-regularized least squares regression formulation
48
- * f(weights) = 1/n ||A weights-y||^2 + regParam/2 ||weights||^2
48
+ * f(weights) = 1/2n ||A weights-y||^2 + regParam/2 ||weights||^2
49
49
* Here the data matrix has n rows, and the input RDD holds the set of rows of A, each with
50
50
* its corresponding right hand side label y.
51
51
* See also the documentation for the precise formulation.
You can’t perform that action at this time.
0 commit comments