aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/test
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-03-04 08:25:41 -0800
committerXiangrui Meng <meng@databricks.com>2016-03-04 08:25:41 -0800
commitc8f25459ed4ad6b51a5f11665364cfe0b84f7b3c (patch)
treeb055ffe282e2224a298ef7acb12bf4369d5e2475 /mllib/src/test
parente617508244b508b59b4debb35cad3258cddbb9cf (diff)
downloadspark-c8f25459ed4ad6b51a5f11665364cfe0b84f7b3c.tar.gz
spark-c8f25459ed4ad6b51a5f11665364cfe0b84f7b3c.tar.bz2
spark-c8f25459ed4ad6b51a5f11665364cfe0b84f7b3c.zip
[SPARK-13676] Fix mismatched default values for regParam in LogisticRegression
## What changes were proposed in this pull request? The default value of regularization parameter for `LogisticRegression` algorithm is different in Scala and Python. We should provide the same value. **Scala** ``` scala> new org.apache.spark.ml.classification.LogisticRegression().getRegParam res0: Double = 0.0 ``` **Python** ``` >>> from pyspark.ml.classification import LogisticRegression >>> LogisticRegression().getRegParam() 0.1 ``` ## How was this patch tested? manual. Check the following in `pyspark`. ``` >>> from pyspark.ml.classification import LogisticRegression >>> LogisticRegression().getRegParam() 0.0 ``` Author: Dongjoon Hyun <dongjoon@apache.org> Closes #11519 from dongjoon-hyun/SPARK-13676.
Diffstat (limited to 'mllib/src/test')
0 files changed, 0 insertions, 0 deletions