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

[GitHub] spark pull request: [SPARK-5974] [SPARK-5980] [mllib] [python] [do...

GitHub user jkbradley opened a pull request:

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

    [SPARK-5974] [SPARK-5980] [mllib] [python] [docs]

    * Add GradientBoostedTrees Python examples to ML guide
      * I ran these in the pyspark shell, and they worked.
    * Add save/load to examples in ML guide
    * Added note to python docs about predict,transform not working within RDD actions,transformations in some cases (See SPARK-5981)
    
    CC: @mengxr

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

    $ git pull https://github.com/jkbradley/spark SPARK-5974

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

    https://github.com/apache/spark/pull/4750.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 #4750
    
----
commit c7dfad84560b28dac2c0c2f77c1e0ae90b2d2043
Author: Joseph K. Bradley <jo...@databricks.com>
Date:   2015-02-24T22:11:26Z

    Added model save/load to ML guide.  Added GBT examples to ML guide

commit 990330965c0d24ca3d6bbeae07964cebff75b7ce
Author: Joseph K. Bradley <jo...@databricks.com>
Date:   2015-02-24T22:26:51Z

    Added note to python docs about predict,transform not working within RDD actions,transformations in some cases

commit 6d81c3e25a23da9dc5c2b6f24c629d7599d3b6d6
Author: Joseph K. Bradley <jo...@databricks.com>
Date:   2015-02-24T22:45:20Z

    completed python GBT 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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-75879232
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27916/
    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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76033436
  
    Note I corrected a bunch of other doc lines in those files too but did not edit the text content at all.


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76049944
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27953/
    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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76033308
  
    OK that should fix those 2 issues


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#discussion_r25306685
  
    --- Diff: docs/mllib-collaborative-filtering.md ---
    @@ -95,6 +95,9 @@ val MSE = ratesAndPreds.map { case ((user, product), (r1, r2)) =>
       err * err
     }.mean()
     println("Mean Squared Error = " + MSE)
    +
    +model.save("myModelPath")
    +val sameModel = MatrixFactorizationModel.load("myModelPath")
    --- End diff --
    
    import `MatrixFactorizationModel` and please check others


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76063880
  
      [Test build #27956 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27956/consoleFull) for   PR 4750 at commit [`c410e38`](https://github.com/apache/spark/commit/c410e385438bec0bd78e1fd29706e3e2ee75f985).
     * 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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-75864895
  
      [Test build #27916 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27916/consoleFull) for   PR 4750 at commit [`6d81c3e`](https://github.com/apache/spark/commit/6d81c3e25a23da9dc5c2b6f24c629d7599d3b6d6).
     * This patch merges cleanly.


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-75879221
  
      [Test build #27916 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27916/consoleFull) for   PR 4750 at commit [`6d81c3e`](https://github.com/apache/spark/commit/6d81c3e25a23da9dc5c2b6f24c629d7599d3b6d6).
     * 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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76033540
  
      [Test build #27953 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27953/consoleFull) for   PR 4750 at commit [`bcae18b`](https://github.com/apache/spark/commit/bcae18b4c0553be87cd7344b4d96f0ad8a354ca9).
     * This patch merges cleanly.


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#discussion_r25306691
  
    --- Diff: python/pyspark/mllib/feature.py ---
    @@ -120,6 +120,9 @@ def transform(self, vector):
             """
             Applies standardization transformation on a vector.
     
    +        Note: In Python, transform cannot currently be used within an RDD
    +              transformation or action.  Call transform directly on the RDD instead.
    --- End diff --
    
    This line may be too long for Python doc. We use 72 in PySpark, the same as in PEP8.


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76063892
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27956/
    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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76049926
  
      [Test build #27953 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27953/consoleFull) for   PR 4750 at commit [`bcae18b`](https://github.com/apache/spark/commit/bcae18b4c0553be87cd7344b4d96f0ad8a354ca9).
     * 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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76046906
  
      [Test build #27956 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27956/consoleFull) for   PR 4750 at commit [`c410e38`](https://github.com/apache/spark/commit/c410e385438bec0bd78e1fd29706e3e2ee75f985).
     * This patch merges cleanly.


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

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


---
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-5974] [SPARK-5980] [mllib] [python] [do...

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

    https://github.com/apache/spark/pull/4750#issuecomment-76092588
  
    LGTM. Merged into master and branch-1.3. 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