You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by wangmiao1981 <gi...@git.apache.org> on 2016/04/27 01:18:36 UTC

[GitHub] spark pull request: [SPARK-14937][ML][Document]spark.ml LogisticRe...

GitHub user wangmiao1981 opened a pull request:

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

    [SPARK-14937][ML][Document]spark.ml LogisticRegression sqlCtx in scala is inconsistent with java and python

    ## What changes were proposed in this pull request?
    In spark.ml document, the LogisticRegression scala example uses sqlCtx. It is inconsistent with java and python examples which use sqlContext. In addition, a user can't copy & paste to run the example in spark-shell as sqlCtx doesn't exist in spark-shell while sqlContext exists.
    
    Change the scala example referred by the spark.ml example.
    
    
    ## How was this patch tested?
    
    Compile the example scala file and it passes compilation.


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

    $ git pull https://github.com/wangmiao1981/spark doc

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

    https://github.com/apache/spark/pull/12717.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 #12717
    
----
commit dff3b2af8437ff051f089d8f2494c4945fe63912
Author: wm624@hotmail.com <wm...@hotmail.com>
Date:   2016-04-26T23:15:35Z

    fix sqlCtx in example

----


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214922218
  
    **[Test build #57053 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57053/consoleFull)** for PR 12717 at commit [`a7e3cd5`](https://github.com/apache/spark/commit/a7e3cd56122efb8253b2434a8398dfb7e886bd06).
     * 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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61288394
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    @srowen I searched all examples in ml and corrected them if they are used in examples in the document. There is one logisticRegression training summary example, which is not part of the document. So I think it is not necessary to change it. 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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214921625
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/57051/
    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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214917210
  
    **[Test build #57047 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57047/consoleFull)** for PR 12717 at commit [`dff3b2a`](https://github.com/apache/spark/commit/dff3b2af8437ff051f089d8f2494c4945fe63912).


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61259020
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    It's necessary, otherwise compiler will complains when use DataFrame methods.


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214921623
  
    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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-215192771
  
    LGTM too, thanks all!
    Merging with master now


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214918994
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/57047/
    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: [SPARK-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214919336
  
    **[Test build #57051 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57051/consoleFull)** for PR 12717 at commit [`a7e3cd5`](https://github.com/apache/spark/commit/a7e3cd56122efb8253b2434a8398dfb7e886bd06).


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61218586
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    Is this import still needed? (I forget.) It's weird to use a variable name in the import isn't it? (I know it was already like that.) Otherwise this does look like all instances of `sqlCtx` in examples, yes.


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61303728
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    I don't think this import is needed anymore.  It used to be there to use the toDF() method back when there was no libsvm data source.


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-215088912
  
    This looks 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


[GitHub] spark pull request: [SPARK-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214918989
  
    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: [SPARK-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214922322
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/57053/
    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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214918960
  
    **[Test build #57047 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57047/consoleFull)** for PR 12717 at commit [`dff3b2a`](https://github.com/apache/spark/commit/dff3b2af8437ff051f089d8f2494c4945fe63912).
     * This patch **fails MiMa 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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214919250
  
    retest 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


[GitHub] spark pull request: [SPARK-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61306574
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    @jkbradley     
    69: val bestThreshold = fMeasure.where($"F-Measure" === maxFMeasure)
    70:      .select("threshold").head().getDouble(0)
    
    Still needs the import. Otherwise, it won't be compiled.


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214970534
  
    @yanboliang  Can you take a look ? It is a simple fix. 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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61305059
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    Let me try to fix it in this PR. 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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214920155
  
    **[Test build #57053 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57053/consoleFull)** for PR 12717 at commit [`a7e3cd5`](https://github.com/apache/spark/commit/a7e3cd56122efb8253b2434a8398dfb7e886bd06).


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214922321
  
    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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#issuecomment-214921533
  
    **[Test build #57051 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57051/consoleFull)** for PR 12717 at commit [`a7e3cd5`](https://github.com/apache/spark/commit/a7e3cd56122efb8253b2434a8398dfb7e886bd06).
     * 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-14937][ML][Document]spark.ml LogisticRe...

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

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


---
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-14937][ML][Document]spark.ml LogisticRe...

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

    https://github.com/apache/spark/pull/12717#discussion_r61314695
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala ---
    @@ -30,11 +30,11 @@ object LogisticRegressionSummaryExample {
       def main(args: Array[String]): Unit = {
         val conf = new SparkConf().setAppName("LogisticRegressionSummaryExample")
         val sc = new SparkContext(conf)
    -    val sqlCtx = new SQLContext(sc)
    -    import sqlCtx.implicits._
    +    val sqlContext = new SQLContext(sc)
    +    import sqlContext.implicits._
    --- End diff --
    
    Oh, OK, I guess it's the dollar sign notation


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