Skip to content

Conversation

@mengxr
Copy link
Contributor

@mengxr mengxr commented Jun 1, 2015

This PR adds a section in the user guide for VectorAssembler with code examples in Python/Java/Scala. It also adds a unit test in Java.

@jkbradley

@jkbradley
Copy link
Member

@mengxr I don't see any problems, so LGTM. One comment: Should the Java unit test be identical (or as close as possible) to the example, to help test it?

Caveat: I read but did not generate the docs.

@mengxr
Copy link
Contributor Author

mengxr commented Jun 1, 2015

The Java unit test is the same as the Scala unit test, but the example code in the user guide is different. I thought about this difference. One reason is that the unit test is for API coverage while the example code is for hands-on. So it would be too much if we show, e.g., both sparse vectors and dense vectors in the example code. But it would be nice to have some level of similarity.

@SparkQA
Copy link

SparkQA commented Jun 1, 2015

Test build #33913 has finished for PR 6556 at commit 0cd47f3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public class JavaVectorAssemblerSuite

@SparkQA
Copy link

SparkQA commented Jun 1, 2015

Test build #33915 has finished for PR 6556 at commit 11313f6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public class JavaVectorAssemblerSuite

@jkbradley
Copy link
Member

@mengxr Oh OK that makes sense. LGTM

@asfgit asfgit closed this in 90c6069 Jun 1, 2015
asfgit pushed a commit that referenced this pull request Jun 1, 2015
This PR adds a section in the user guide for `VectorAssembler` with code examples in Python/Java/Scala. It also adds a unit test in Java.

jkbradley

Author: Xiangrui Meng <[email protected]>

Closes #6556 from mengxr/SPARK-7584 and squashes the following commits:

11313f6 [Xiangrui Meng] simplify Java example
0cd47f3 [Xiangrui Meng] update user guide
fd36292 [Xiangrui Meng] update Java unit test
ce61ca0 [Xiangrui Meng] add Java unit test for VectorAssembler
e399942 [Xiangrui Meng] scala/python example code

(cherry picked from commit 90c6069)
Signed-off-by: Xiangrui Meng <[email protected]>
@mengxr
Copy link
Contributor Author

mengxr commented Jun 1, 2015

Merged into master and branch-1.4.

jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
This PR adds a section in the user guide for `VectorAssembler` with code examples in Python/Java/Scala. It also adds a unit test in Java.

jkbradley

Author: Xiangrui Meng <[email protected]>

Closes apache#6556 from mengxr/SPARK-7584 and squashes the following commits:

11313f6 [Xiangrui Meng] simplify Java example
0cd47f3 [Xiangrui Meng] update user guide
fd36292 [Xiangrui Meng] update Java unit test
ce61ca0 [Xiangrui Meng] add Java unit test for VectorAssembler
e399942 [Xiangrui Meng] scala/python example code
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
This PR adds a section in the user guide for `VectorAssembler` with code examples in Python/Java/Scala. It also adds a unit test in Java.

jkbradley

Author: Xiangrui Meng <[email protected]>

Closes apache#6556 from mengxr/SPARK-7584 and squashes the following commits:

11313f6 [Xiangrui Meng] simplify Java example
0cd47f3 [Xiangrui Meng] update user guide
fd36292 [Xiangrui Meng] update Java unit test
ce61ca0 [Xiangrui Meng] add Java unit test for VectorAssembler
e399942 [Xiangrui Meng] scala/python example code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants