You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by mengxr <gi...@git.apache.org> on 2016/06/21 06:55:45 UTC

[GitHub] spark pull request #13801: [SPARK-15177.1] [R] make SparkR model params and ...

GitHub user mengxr opened a pull request:

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

    [SPARK-15177.1] [R] make SparkR model params and default values consistent with MLlib

    ## What changes were proposed in this pull request?
    
    This PR is a subset of #13023 by @yanboliang to make SparkR model param names and default values consistent with MLlib. I tried to avoid other changes from #13023 to keep this PR minimal. I will send a follow-up PR to improve the documentation.
    
    ## How was this patch tested?
    
    Existing unit tests.


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

    $ git pull https://github.com/mengxr/spark SPARK-15177.1

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

    https://github.com/apache/spark/pull/13801.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 #13801
    
----
commit 39a4c4c3b9e43e82d77798c4077cd71b8820dddd
Author: Xiangrui Meng <me...@databricks.com>
Date:   2016-06-21T06:50:54Z

    make SparkR model params and default values consistent with MLlib

----


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60913/
    Test FAILed.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Merged build finished. Test PASSed.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and ...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13801#discussion_r67818449
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -298,17 +296,17 @@ setMethod("summary", signature(object = "NaiveBayesModel"),
     #' @export
     #' @examples
     #' \dontrun{
    -#' model <- spark.kmeans(data, ~ ., k=2, initMode="random")
    +#' model <- spark.kmeans(data, ~ ., k = 4, initMode = "random")
     #' }
     #' @note spark.kmeans since 2.0.0
     setMethod("spark.kmeans", signature(data = "SparkDataFrame", formula = "formula"),
    -          function(data, formula, k, maxIter = 10, initMode = c("random", "k-means||")) {
    +          function(data, formula, k = 2, maxIter = 20, initMode = c("k-means||", "random")) {
    --- End diff --
    
    Ah I see - change LGTM then


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and ...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13801#discussion_r67818028
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -298,17 +296,17 @@ setMethod("summary", signature(object = "NaiveBayesModel"),
     #' @export
     #' @examples
     #' \dontrun{
    -#' model <- spark.kmeans(data, ~ ., k=2, initMode="random")
    +#' model <- spark.kmeans(data, ~ ., k = 4, initMode = "random")
     #' }
     #' @note spark.kmeans since 2.0.0
     setMethod("spark.kmeans", signature(data = "SparkDataFrame", formula = "formula"),
    -          function(data, formula, k, maxIter = 10, initMode = c("random", "k-means||")) {
    +          function(data, formula, k = 2, maxIter = 20, initMode = c("k-means||", "random")) {
    --- End diff --
    
    just to clarify - this initMode change wasn't present in #13023 -- Is this intended to match some Spark behavior ?


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    **[Test build #60915 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60915/consoleFull)** for PR 13801 at commit [`39a4c4c`](https://github.com/apache/spark/commit/39a4c4c3b9e43e82d77798c4077cd71b8820dddd).


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60915/
    Test FAILed.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60917/
    Test PASSed.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Merged build finished. Test FAILed.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and ...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13801#discussion_r67818257
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -298,17 +296,17 @@ setMethod("summary", signature(object = "NaiveBayesModel"),
     #' @export
     #' @examples
     #' \dontrun{
    -#' model <- spark.kmeans(data, ~ ., k=2, initMode="random")
    +#' model <- spark.kmeans(data, ~ ., k = 4, initMode = "random")
     #' }
     #' @note spark.kmeans since 2.0.0
     setMethod("spark.kmeans", signature(data = "SparkDataFrame", formula = "formula"),
    -          function(data, formula, k, maxIter = 10, initMode = c("random", "k-means||")) {
    +          function(data, formula, k = 2, maxIter = 20, initMode = c("k-means||", "random")) {
    --- End diff --
    
    Yes, the default `initMode` in MLlib is `k-means||` instead of `random`.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Changes look fine given what was a part of #13023 


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    **[Test build #60913 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60913/consoleFull)** for PR 13801 at commit [`39a4c4c`](https://github.com/apache/spark/commit/39a4c4c3b9e43e82d77798c4077cd71b8820dddd).


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    cc: @shivaram 


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and ...

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

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


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    **[Test build #60917 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60917/consoleFull)** for PR 13801 at commit [`0a712fe`](https://github.com/apache/spark/commit/0a712fec859ed0ea73cf592bd05220fd94d7cf70).
     * 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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Merged build finished. Test FAILed.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    **[Test build #60917 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60917/consoleFull)** for PR 13801 at commit [`0a712fe`](https://github.com/apache/spark/commit/0a712fec859ed0ea73cf592bd05220fd94d7cf70).


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    Merged into master and branch-2.0.


---
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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    **[Test build #60913 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60913/consoleFull)** for PR 13801 at commit [`39a4c4c`](https://github.com/apache/spark/commit/39a4c4c3b9e43e82d77798c4077cd71b8820dddd).
     * This patch **fails SparkR unit 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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    **[Test build #60915 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60915/consoleFull)** for PR 13801 at commit [`39a4c4c`](https://github.com/apache/spark/commit/39a4c4c3b9e43e82d77798c4077cd71b8820dddd).
     * This patch **fails SparkR unit 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 #13801: [SPARK-15177.1] [R] make SparkR model params and default...

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

    https://github.com/apache/spark/pull/13801
  
    test this please


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