GitHub user dongjoon-hyun opened a pull request:

    https://github.com/apache/spark/pull/11519

    [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
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dongjoon-hyun/spark SPARK-13676

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11519.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11519
    
----
commit d5323af4383e9fbebea30af51801bc9f623822aa
Author: Dongjoon Hyun <dongj...@apache.org>
Date:   2016-03-04T11:54:19Z

    [SPARK-13676] Fix mismatched default values for regParam in 
LogisticRegression

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to