You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by dbtsai <gi...@git.apache.org> on 2016/04/12 03:56:32 UTC

[GitHub] spark pull request: [SPARK-14549][ML][WIP] Copy the Vector and Mat...

GitHub user dbtsai opened a pull request:

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

    [SPARK-14549][ML][WIP] Copy the Vector and Matrix classes from mllib to ml in mllib-local

    ## What changes were proposed in this pull request?
    
    This task will copy the Vector and Matrix classes from mllib to ml package in mllib-local jar. The UDTs and `since` annotation in ml vector and matrix will be removed from now. UDTs will be achieved by #SPARK-14487, and `since` will be replaced by /* @ since 1.2.0 */
    
    The BLAS implementation will be copied, and some of the test utilities will be copies as well. 
    
    ## How was this patch tested?
    
    unit tests

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

    $ git pull https://github.com/dbtsai/spark dbtsai-ml-vector

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

    https://github.com/apache/spark/pull/12317.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 #12317
    
----
commit f37e112bfe25e2937361a610c70576342f88efcf
Author: DB Tsai <db...@netflix.com>
Date:   2016-04-11T22:59:31Z

    Moved NumericParser.scala from mllib to mllib-local, and made it throw `IllegalArgumentException` instead of `SparkException`.

commit 6c301836d463b572481c994993ac54b29907ebc4
Author: DB Tsai <db...@netflix.com>
Date:   2016-04-11T23:04:42Z

    Made NumericParser.scala be acceable from spark pacakge

commit 11ab7884ab53006e02bd3c7cf29610e1b46feddd
Author: DB Tsai <db...@netflix.com>
Date:   2016-04-11T23:24:08Z

    Copy files from mllib to mllib-local

commit fe26990448ae0f457dc44a55350a07e550216c4b
Author: DB Tsai <db...@netflix.com>
Date:   2016-04-11T23:24:41Z

    Some styling fix in MLUtilsSuite.scala

commit e09b1080f5d2d72bbe256c85c7b4caf6e63e323f
Author: DB Tsai <db...@netflix.com>
Date:   2016-04-11T23:44:39Z

    Rename from mllib to ml for the new added classes, and also fixed the SparkFunSuite imports

commit 5795d54a3bf3225f40d5a5d1682138c272021ba9
Author: DB Tsai <db...@netflix.com>
Date:   2016-04-12T01:29:28Z

    Removed UDT and Since to compile the code

----


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209695480
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55752/
    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-14549][ML] Copy the Vector and Matrix c...

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

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


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208712225
  
    **[Test build #55589 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55589/consoleFull)** for PR 12317 at commit [`f9473f5`](https://github.com/apache/spark/commit/f9473f539bd5cc917d613f0868e6aa121a8bd40e).


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208662262
  
    **[Test build #55571 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55571/consoleFull)** for PR 12317 at commit [`5795d54`](https://github.com/apache/spark/commit/5795d54a3bf3225f40d5a5d1682138c272021ba9).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210125827
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209711490
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55760/
    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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208693648
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210125831
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55827/
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210328832
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210145620
  
    @mengxr The versions of the dependencies have been moved to the parent POM. 


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208664675
  
    **[Test build #55574 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55574/consoleFull)** for PR 12317 at commit [`1fba791`](https://github.com/apache/spark/commit/1fba79171bdf47bf80f884189c48adda84fac2c5).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209698388
  
    **[Test build #55766 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55766/consoleFull)** for PR 12317 at commit [`150a60b`](https://github.com/apache/spark/commit/150a60b91fbead0a9938f88487c0cf72abcf8b25).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210125022
  
    **[Test build #55827 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55827/consoleFull)** for PR 12317 at commit [`35e2da5`](https://github.com/apache/spark/commit/35e2da577348088d51305c10c9089f039f84e893).
     * 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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209683016
  
    **[Test build #55755 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55755/consoleFull)** for PR 12317 at commit [`38914b2`](https://github.com/apache/spark/commit/38914b29066a1e501f8a47f001cdd4941fdca86c).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209687742
  
    **[Test build #55760 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55760/consoleFull)** for PR 12317 at commit [`45a0ee8`](https://github.com/apache/spark/commit/45a0ee845bfe5fdad69811387f33485956c4a079).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210080481
  
    **[Test build #55827 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55827/consoleFull)** for PR 12317 at commit [`35e2da5`](https://github.com/apache/spark/commit/35e2da577348088d51305c10c9089f039f84e893).


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209046394
  
    @dbtsai Please remove `WIP` from title when this is ready for review:)


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209711481
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#discussion_r59826886
  
    --- Diff: mllib-local/pom.xml ---
    @@ -49,6 +49,10 @@
           <scope>test</scope>
         </dependency>
         <dependency>
    +      <groupId>org.json4s</groupId>
    +      <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
    --- End diff --
    
    I created https://issues.apache.org/jira/browse/SPARK-14653 as a follow-up item.


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210353251
  
    LGTM. Merged into master. 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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209695352
  
    **[Test build #55752 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55752/consoleFull)** for PR 12317 at commit [`69f6982`](https://github.com/apache/spark/commit/69f6982bc520b249e4909d9c227a04114a22f3e0).
     * This patch **fails Spark 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 pull request: [SPARK-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208693649
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55574/
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#discussion_r59646221
  
    --- Diff: mllib-local/pom.xml ---
    @@ -62,6 +62,15 @@
           <scope>test</scope>
         </dependency>
         <dependency>
    +      <groupId>com.google.guava</groupId>
    +      <artifactId>guava</artifactId>
    --- End diff --
    
    The only place we use guava is one `hashCode`. I think we should remove it from `mllib-local`'s dependencies.


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210328578
  
    **[Test build #55902 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55902/consoleFull)** for PR 12317 at commit [`e626d1d`](https://github.com/apache/spark/commit/e626d1dca729b6e33835d3fa87e1acb7a37aa510).
     * 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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210201008
  
    +cc @srowen @MLnick 


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208751778
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55589/
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210287063
  
    I'm making another pass.


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209710848
  
    **[Test build #55760 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55760/consoleFull)** for PR 12317 at commit [`45a0ee8`](https://github.com/apache/spark/commit/45a0ee845bfe5fdad69811387f33485956c4a079).
     * 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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209695475
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#discussion_r59646323
  
    --- Diff: mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala ---
    @@ -0,0 +1,1026 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.ml.linalg
    +
    +import java.util.{Arrays, Random}
    +
    +import scala.collection.mutable.{ArrayBuffer, ArrayBuilder => MArrayBuilder, HashSet => MHashSet}
    +
    +import breeze.linalg.{CSCMatrix => BSM, DenseMatrix => BDM, Matrix => BM}
    +import com.github.fommil.netlib.BLAS.{getInstance => blas}
    +
    +/**
    + * Trait for a local matrix.
    + */
    +sealed trait Matrix extends Serializable {
    +
    +  /** Number of rows. */
    +  def numRows: Int
    +
    +  /** Number of columns. */
    +  def numCols: Int
    +
    +  /** Flag that keeps track whether the matrix is transposed or not. False by default. */
    +  val isTransposed: Boolean = false
    +
    +  /** Converts to a dense array in column major. */
    +  def toArray: Array[Double] = {
    +    val newArray = new Array[Double](numRows * numCols)
    +    foreachActive { (i, j, v) =>
    +      newArray(j * numRows + i) = v
    +    }
    +    newArray
    +  }
    +
    +  /**
    +   * Returns an iterator of column vectors.
    +   * This operation could be expensive, depending on the underlying storage.
    +   */
    +  def colIter: Iterator[Vector]
    +
    +  /**
    +   * Returns an iterator of row vectors.
    +   * This operation could be expensive, depending on the underlying storage.
    +   */
    +  def rowIter: Iterator[Vector] = this.transpose.colIter
    +
    +  /** Converts to a breeze matrix. */
    +  private[ml] def toBreeze: BM[Double]
    +
    +  /** Gets the (i, j)-th element. */
    +  def apply(i: Int, j: Int): Double
    +
    +  /** Return the index for the (i, j)-th element in the backing array. */
    +  private[ml] def index(i: Int, j: Int): Int
    +
    +  /** Update element at (i, j) */
    +  private[ml] def update(i: Int, j: Int, v: Double): Unit
    +
    +  /** Get a deep copy of the matrix. */
    +  def copy: Matrix
    +
    +  /** Transpose the Matrix. Returns a new `Matrix` instance sharing the same underlying data. */
    +  def transpose: Matrix
    +
    +  /** Convenience method for `Matrix`-`DenseMatrix` multiplication. */
    +  def multiply(y: DenseMatrix): DenseMatrix = {
    +    val C: DenseMatrix = DenseMatrix.zeros(numRows, y.numCols)
    +    BLAS.gemm(1.0, this, y, 0.0, C)
    +    C
    +  }
    +
    +  /** Convenience method for `Matrix`-`DenseVector` multiplication. For binary compatibility. */
    +  def multiply(y: DenseVector): DenseVector = {
    +    multiply(y.asInstanceOf[Vector])
    +  }
    +
    +  /** Convenience method for `Matrix`-`Vector` multiplication. */
    +  def multiply(y: Vector): DenseVector = {
    +    val output = new DenseVector(new Array[Double](numRows))
    +    BLAS.gemv(1.0, this, y, 0.0, output)
    +    output
    +  }
    +
    +  /** A human readable representation of the matrix */
    +  override def toString: String = toBreeze.toString()
    +
    +  /** A human readable representation of the matrix with maximum lines and width */
    +  def toString(maxLines: Int, maxLineWidth: Int): String = toBreeze.toString(maxLines, maxLineWidth)
    +
    +  /**
    +   * Map the values of this matrix using a function. Generates a new matrix. Performs the
    +   * function on only the backing array. For example, an operation such as addition or
    +   * subtraction will only be performed on the non-zero values in a `SparseMatrix`.
    +   */
    +  private[spark] def map(f: Double => Double): Matrix
    +
    +  /**
    +   * Update all the values of this matrix using the function f. Performed in-place on the
    +   * backing array. For example, an operation such as addition or subtraction will only be
    +   * performed on the non-zero values in a `SparseMatrix`.
    +   */
    +  private[ml] def update(f: Double => Double): Matrix
    +
    +  /**
    +   * Applies a function `f` to all the active elements of dense and sparse matrix. The ordering
    +   * of the elements are not defined.
    +   *
    +   * @param f the function takes three parameters where the first two parameters are the row
    +   *          and column indices respectively with the type `Int`, and the final parameter is the
    +   *          corresponding value in the matrix with type `Double`.
    +   */
    +  private[spark] def foreachActive(f: (Int, Int, Double) => Unit)
    +
    +  /**
    +   * Find the number of non-zero active values.
    +   */
    +  def numNonzeros: Int
    +
    +  /**
    +   * Find the number of values stored explicitly. These values can be zero as well.
    +   */
    +  def numActives: Int
    +}
    +
    +/**
    + * Column-major dense matrix.
    + * The entry values are stored in a single array of doubles with columns listed in sequence.
    + * For example, the following matrix
    + * {{{
    + *   1.0 2.0
    + *   3.0 4.0
    + *   5.0 6.0
    + * }}}
    + * is stored as `[1.0, 3.0, 5.0, 2.0, 4.0, 6.0]`.
    + *
    + * @param numRows number of rows
    + * @param numCols number of columns
    + * @param values matrix entries in column major if not transposed or in row major otherwise
    + * @param isTransposed whether the matrix is transposed. If true, `values` stores the matrix in
    + *                     row major.
    + */
    +class DenseMatrix (
    +    val numRows: Int,
    +    val numCols: Int,
    +    val values: Array[Double],
    +    override val isTransposed: Boolean) extends Matrix {
    +
    +  require(values.length == numRows * numCols, "The number of values supplied doesn't match the " +
    +    s"size of the matrix! values.length: ${values.length}, numRows * numCols: ${numRows * numCols}")
    +
    +  /**
    +   * Column-major dense matrix.
    +   * The entry values are stored in a single array of doubles with columns listed in sequence.
    +   * For example, the following matrix
    +   * {{{
    +   *   1.0 2.0
    +   *   3.0 4.0
    +   *   5.0 6.0
    +   * }}}
    +   * is stored as `[1.0, 3.0, 5.0, 2.0, 4.0, 6.0]`.
    +   *
    +   * @param numRows number of rows
    +   * @param numCols number of columns
    +   * @param values matrix entries in column major
    +   */
    +  def this(numRows: Int, numCols: Int, values: Array[Double]) =
    +    this(numRows, numCols, values, false)
    +
    +  override def equals(o: Any): Boolean = o match {
    +    case m: Matrix => toBreeze == m.toBreeze
    +    case _ => false
    +  }
    +
    +  override def hashCode: Int = {
    +    com.google.common.base.Objects.hashCode(numRows: Integer, numCols: Integer, toArray)
    --- End diff --
    
    It could be replaced by `Seq(numRows, numCols, toArray).##`.


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208693559
  
    **[Test build #55574 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55574/consoleFull)** for PR 12317 at commit [`1fba791`](https://github.com/apache/spark/commit/1fba79171bdf47bf80f884189c48adda84fac2c5).
     * This patch **fails Spark 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 pull request: [SPARK-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#discussion_r59647435
  
    --- Diff: mllib-local/pom.xml ---
    @@ -62,6 +62,15 @@
           <scope>test</scope>
         </dependency>
         <dependency>
    +      <groupId>com.google.guava</groupId>
    +      <artifactId>guava</artifactId>
    +    </dependency>
    +    <dependency>
    +      <groupId>org.json4s</groupId>
    +      <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
    +      <version>3.2.10</version>
    --- End diff --
    
    I have another JIRA to do so. We also want to consolidate the version of breeze. https://issues.apache.org/jira/browse/SPARK-14612
    
    If you want, I can do it in this 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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#discussion_r59646142
  
    --- Diff: mllib-local/pom.xml ---
    @@ -62,6 +62,15 @@
           <scope>test</scope>
         </dependency>
         <dependency>
    +      <groupId>com.google.guava</groupId>
    +      <artifactId>guava</artifactId>
    +    </dependency>
    +    <dependency>
    +      <groupId>org.json4s</groupId>
    +      <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
    +      <version>3.2.10</version>
    --- End diff --
    
    Core also depends on json4s (See https://github.com/apache/spark/blob/master/core/pom.xml#L195.). Shall we move the version definition to a common place?


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210328835
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55902/
    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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208751521
  
    **[Test build #55589 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55589/consoleFull)** for PR 12317 at commit [`f9473f5`](https://github.com/apache/spark/commit/f9473f539bd5cc917d613f0868e6aa121a8bd40e).
     * 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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208662933
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209704063
  
    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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208662935
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55571/
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209672896
  
    **[Test build #55752 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55752/consoleFull)** for PR 12317 at commit [`69f6982`](https://github.com/apache/spark/commit/69f6982bc520b249e4909d9c227a04114a22f3e0).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209722858
  
    **[Test build #55766 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55766/consoleFull)** for PR 12317 at commit [`150a60b`](https://github.com/apache/spark/commit/150a60b91fbead0a9938f88487c0cf72abcf8b25).
     * 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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208662926
  
    **[Test build #55571 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55571/consoleFull)** for PR 12317 at commit [`5795d54`](https://github.com/apache/spark/commit/5795d54a3bf3225f40d5a5d1682138c272021ba9).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `class DenseMatrix (`
      * `class SparseMatrix (`
      * `class DenseVector (val values: Array[Double]) extends Vector `
      * `class SparseVector (`


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209704066
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55755/
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-210294593
  
    **[Test build #55902 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55902/consoleFull)** for PR 12317 at commit [`e626d1d`](https://github.com/apache/spark/commit/e626d1dca729b6e33835d3fa87e1acb7a37aa510).


---
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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209723265
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#discussion_r59828006
  
    --- Diff: mllib-local/src/main/scala/org/apache/spark/mllib/util/NumericParser.scala ---
    @@ -21,16 +21,14 @@ import java.util.StringTokenizer
     
     import scala.collection.mutable.{ArrayBuilder, ListBuffer}
     
    -import org.apache.spark.SparkException
    -
     /**
      * Simple parser for a numeric structure consisting of three types:
      *
      *  - number: a double in Java's floating number format
      *  - array: an array of numbers stored as `[v0,v1,...,vn]`
      *  - tuple: a list of numbers, arrays, or tuples stored as `(...)`
      */
    -private[mllib] object NumericParser {
    +private[spark] object NumericParser {
    --- End diff --
    
    We can leave this file in mllib and remove the parse methods under `ml.linalg`, which was introduced very earlier and now basically replaced by UDTs.


---
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-14549][ML][WIP] Copy the Vector and Mat...

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

    https://github.com/apache/spark/pull/12317#issuecomment-208751776
  
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209723271
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55766/
    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-14549][ML] Copy the Vector and Matrix c...

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

    https://github.com/apache/spark/pull/12317#issuecomment-209703904
  
    **[Test build #55755 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55755/consoleFull)** for PR 12317 at commit [`38914b2`](https://github.com/apache/spark/commit/38914b29066a1e501f8a47f001cdd4941fdca86c).
     * 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