[ 
https://issues.apache.org/jira/browse/SPARK-13676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15179792#comment-15179792
 ] 

Apache Spark commented on SPARK-13676:
--------------------------------------

User 'dongjoon-hyun' has created a pull request for this issue:
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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to