You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2016/03/04 17:26:40 UTC
[jira] [Resolved] (SPARK-13676) Fix mismatched default values for
regParam in LogisticRegression
[ https://issues.apache.org/jira/browse/SPARK-13676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiangrui Meng resolved SPARK-13676.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request 11519
[https://github.com/apache/spark/pull/11519]
> Fix mismatched default values for regParam in LogisticRegression
> ----------------------------------------------------------------
>
> Key: SPARK-13676
> URL: https://issues.apache.org/jira/browse/SPARK-13676
> Project: Spark
> Issue Type: Bug
> Components: ML, MLlib
> Reporter: Dongjoon Hyun
> Fix For: 2.0.0
>
>
> The default value of regularization parameter for `LogisticRegression` algorithm is different in Scala and Python. We should provide the same value.
> {code:title=Scala|borderStyle=solid}
> scala> new org.apache.spark.ml.classification.LogisticRegression().getRegParam
> res0: Double = 0.0
> {code}
> {code:title=Python|borderStyle=solid}
> >>> from pyspark.ml.classification import LogisticRegression
> >>> LogisticRegression().getRegParam()
> 0.1
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org