You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by datumbox <gi...@git.apache.org> on 2017/03/01 14:14:41 UTC

[GitHub] spark pull request #17121: [SPARK-19787][ML] Changing the default parameter ...

GitHub user datumbox opened a pull request:

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

    [SPARK-19787][ML] Changing the default parameter of regParam.

    ## What changes were proposed in this pull request?
    
    In the ALS method the default values of regParam do not match within the same file (lines [224](https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala#L224) and [714](https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala#L714)). In one place we set it to 1.0 and in the other to 0.1.
    
    I changed the one of train() method to 0.1 and now it matches the default value which is visible to Spark users. The method is marked with DeveloperApi so it should not affect the users. Whenever we use the particular method we provide all parameters, so the default does not matter. Only exception is the unit-tests on ALSSuite but the change does not break them.
    
    Note: This PR should get the award of the laziest commit in Spark history. Originally I wanted to correct this on another PR but @MLnick [suggested](https://github.com/apache/spark/pull/17059#issuecomment-283333572) to create a separate PR & ticket. If you this this change is too insignificant/minor, you are probably right, so feel free to reject and close this. :)
    
    ## How was this patch tested?
    
    Unit-tests


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

    $ git pull https://github.com/datumbox/spark als_regparam

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

    https://github.com/apache/spark/pull/17121.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 #17121
    
----
commit a27ae4e8ce52424b6d7d057d4d3240651d5c5118
Author: Vasilis Vryniotis <vv...@hotels.com>
Date:   2017-03-01T14:05:40Z

    Changing the default parameter of regParam.

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by MLnick <gi...@git.apache.org>.
Github user MLnick commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    ok to test


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by MLnick <gi...@git.apache.org>.
Github user MLnick commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    I'm not sure if this will break MiMa - let's see


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by MLnick <gi...@git.apache.org>.
Github user MLnick commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    @datumbox LGTM, thanks. Merged to master.
    
    By the way - this is a tiny change and sometimes we don't bother, and if we do it it can have a [MINOR] tag in the PR title. Having said that there's been many cases before where supposedly minor changes break things inadvertently and then it's more difficult to track as there is no JIRA etc. I tend to err on the side of caution :) 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #17121: [SPARK-19787][ML] Changing the default parameter ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    Can one of the admins verify this patch?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    **[Test build #3587 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/3587/testReport)** for PR 17121 at commit [`a27ae4e`](https://github.com/apache/spark/commit/a27ae4e8ce52424b6d7d057d4d3240651d5c5118).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    **[Test build #3587 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/3587/testReport)** for PR 17121 at commit [`a27ae4e`](https://github.com/apache/spark/commit/a27ae4e8ce52424b6d7d057d4d3240651d5c5118).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17121: [SPARK-19787][ML] Changing the default parameter of regP...

Posted by datumbox <gi...@git.apache.org>.
Github user datumbox commented on the issue:

    https://github.com/apache/spark/pull/17121
  
    @MLnick Sounds good to me thanks. :)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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