You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by hhbyyh <gi...@git.apache.org> on 2015/06/02 14:57:32 UTC

[GitHub] spark pull request: [Spark-8043][MLlib][Doc] update NaiveBayes and...

GitHub user hhbyyh opened a pull request:

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

    [Spark-8043][MLlib][Doc] update NaiveBayes and SVM examples in doc

    jira: https://issues.apache.org/jira/browse/SPARK-8043
    
    I found some issues during testing the save/load examples in markdown Documents, as a part of 1.4 QA plan


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

    $ git pull https://github.com/hhbyyh/spark naiveDocExample

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

    https://github.com/apache/spark/pull/6584.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 #6584
    
----
commit 2fb8b9694c34d322f29da93ee8978f86ddfb23fe
Author: Yuhao Yang <hh...@gmail.com>
Date:   2015-06-02T12:45:02Z

    update NaiveBayes and SVM examples 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-8043][MLlib][Doc] update NaiveBayes and...

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

    https://github.com/apache/spark/pull/6584#issuecomment-107979715
  
    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-8043][MLlib][Doc] update NaiveBayes and...

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

    https://github.com/apache/spark/pull/6584#issuecomment-107946714
  
    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-8043][MLlib][Doc] update NaiveBayes and...

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

    https://github.com/apache/spark/pull/6584#issuecomment-107947127
  
      [Test build #33982 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33982/consoleFull) for   PR 6584 at commit [`2fb8b96`](https://github.com/apache/spark/commit/2fb8b9694c34d322f29da93ee8978f86ddfb23fe).


---
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-8043][MLlib][Doc] update NaiveBayes and...

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

    https://github.com/apache/spark/pull/6584#issuecomment-107946696
  
     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-8043][MLlib][Doc] update NaiveBayes and...

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

    https://github.com/apache/spark/pull/6584#issuecomment-107979668
  
      [Test build #33982 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33982/consoleFull) for   PR 6584 at commit [`2fb8b96`](https://github.com/apache/spark/commit/2fb8b9694c34d322f29da93ee8978f86ddfb23fe).
     * 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-8043][MLlib][Doc] update NaiveBayes 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/6584#discussion_r31541724
  
    --- Diff: docs/mllib-linear-methods.md ---
    @@ -282,8 +277,8 @@ public class SVMClassifier {
         System.out.println("Area under ROC = " + auROC);
     
         // Save and load model
    -    model.save(sc.sc(), "myModelPath");
    -    SVMModel sameModel = SVMModel.load(sc.sc(), "myModelPath");
    +    model.save(sc, "myModelPath");
    --- End diff --
    
    I think `sc.sc()` is required because `save` expects a `SparkContext` instead of `JavaSparkContext`. Though we should really overload it with `JavaSparkContext`.


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