You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by NarineK <gi...@git.apache.org> on 2015/09/22 20:02:15 UTC

[GitHub] spark pull request: [SPARK-10760] [SparkR] SparkR glm: the documen...

GitHub user NarineK opened a pull request:

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

    [SPARK-10760] [SparkR] SparkR glm: the documentation in examples - family argument is missing 

    Hi everyone,
    
    Since the family argument is required for the glm function, the execution of:
    
    model <- glm(Sepal_Length ~ Sepal_Width, df)
    
    is failing.
    
    I've fixed the documentation by adding the family argument and also added the summay(model) which will show the coefficients for the model.
    
    Thanks,
    Narine


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

    $ git pull https://github.com/NarineK/spark sparkrml

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

    https://github.com/apache/spark/pull/8870.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 #8870
    
----
commit a2044d4ced20af458c382dfd72d0bd20e5d28dc9
Author: Narine Kokhlikyan <na...@gmail.com>
Date:   2015-09-22T17:42:42Z

    Fixed the documentation issue in the SparkR.glm examples

----


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142431655
  
      [Test build #42863 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42863/consoleFull) for   PR 8870 at commit [`339f997`](https://github.com/apache/spark/commit/339f99745081eccc3b9d03bb8323c607fac07899).


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40127437
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    AFAIK we dont -- but shouldn't the family be either gaussian or binomial ? Or to put it another way the example should have separate lines for each family. 


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142370370
  
    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 pull request: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40133609
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    Let me know, if only "gaussian" will be sufficient for this example or if I should change the example so that it works for both, 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


[GitHub] spark pull request: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142371263
  
    Merged build started.


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40233423
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    Thnx! Done! would you guys review it and maybe we can close the jira ?


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40144801
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    You can just create a commit on the same branch and push - it should show in this same PR


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142367670
  
    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 pull request: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40130655
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    Okay, I guess, for binomial it requires that: the labels should be in the specific range. 
    In this example binomial is not working. 
    The error says: classification labels should be in range {0 to 7 .... } ....


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142435301
  
    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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40126866
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    minor: `family = c("gaussian", "binomial")`. @shivaram Do we force R code style in doc?


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142372122
  
      [Test build #42845 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42845/consoleFull) for   PR 8870 at commit [`a2044d4`](https://github.com/apache/spark/commit/a2044d4ced20af458c382dfd72d0bd20e5d28dc9).


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142380013
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42845/
    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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142430872
  
     Merged build triggered.


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142380009
  
    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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

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


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40142384
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    Sorry for the trivial question - I'm new in jira/github world
    
    Should I create a new pull request and change it to : model <- glm(Sepal_Length ~ Sepal_Width, df, family="gaussian") or can I directly commit the changes in the existing one ? 
    
    Thanks,
    Narine


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-143320666
  
    LGTM - Thanks @NarineK -- Merging this.


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142435302
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42863/
    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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40129611
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    I see , I can change it to model <- glm(Sepal_Length ~ Sepal_Width, df, family="gaussian"), since it is an example. 
    And also, it seems that there is a problem when I set: family="binomial", at least in my environment. An error is being thrown.



---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142430899
  
    Merged build started.


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40138443
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    Yeah just gaussian is fine.


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142379767
  
      [Test build #42845 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42845/console) for   PR 8870 at commit [`a2044d4`](https://github.com/apache/spark/commit/a2044d4ced20af458c382dfd72d0bd20e5d28dc9).
     * 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 pull request: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142371203
  
     Merged build triggered.


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40138521
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    Thanks, I'll make the change!


---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#discussion_r40131267
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
     #' sqlContext <- sparkRSQL.init(sc)
     #' data(iris)
     #' df <- createDataFrame(sqlContext, iris)
    -#' model <- glm(Sepal_Length ~ Sepal_Width, df)
    +#' model <- glm(Sepal_Length ~ Sepal_Width, df, family=c("gaussian","binomial"))
    --- End diff --
    
    And if we specify a list it is taking the first one: 
     family=c("gaussian","binomial")
     summary(model)
    $coefficients
                  Estimate
    (Intercept)  6.5262226
    Sepal_Width -0.2233611
    
    family = "gaussian"
    summary(model)
    $coefficients
                  Estimate
    (Intercept)  6.5262226
    Sepal_Width -0.2233611
    



---
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: [SPARK-10760] [SparkR] SparkR glm: the documen...

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

    https://github.com/apache/spark/pull/8870#issuecomment-142435183
  
      [Test build #42863 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42863/console) for   PR 8870 at commit [`339f997`](https://github.com/apache/spark/commit/339f99745081eccc3b9d03bb8323c607fac07899).
     * 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