Skip to content

Commit 214f681

Browse files
committed
[SPARK-6278][MLLIB] Mention the change of objective in linear regression
As discussed in the RC3 vote thread, we should mention the change of objective in linear regression in the migration guide. srowen Author: Xiangrui Meng <[email protected]> Closes #4978 from mengxr/SPARK-6278 and squashes the following commits: fb3bbe6 [Xiangrui Meng] mention regularization parameter bfd6cff [Xiangrui Meng] Merge remote-tracking branch 'apache/master' into SPARK-6278 375fd09 [Xiangrui Meng] address Sean's comments f87ae71 [Xiangrui Meng] mention step size change (cherry picked from commit 7f13434) Signed-off-by: Xiangrui Meng <[email protected]>
1 parent dc287f3 commit 214f681

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/mllib-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ In the `spark.mllib` package, there were several breaking changes. The first ch
107107
* In `DecisionTree`, the deprecated class method `train` has been removed. (The object/static `train` methods remain.)
108108
* In `Strategy`, the `checkpointDir` parameter has been removed. Checkpointing is still supported, but the checkpoint directory must be set before calling tree and tree ensemble training.
109109
* `PythonMLlibAPI` (the interface between Scala/Java and Python for MLlib) was a public API but is now private, declared `private[python]`. This was never meant for external use.
110+
* In linear regression (including Lasso and ridge regression), the squared loss is now divided by 2.
111+
So in order to produce the same result as in 1.2, the regularization parameter needs to be divided by 2 and the step size needs to be multiplied by 2.
110112

111113
## Previous Spark Versions
112114

0 commit comments

Comments
 (0)