Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-5726] [MLLIB] Elementwise (Hadamard) Vector Product Transformer #4580

Closed
wants to merge 9 commits into from

Conversation

ogeagla
Copy link
Contributor

@ogeagla ogeagla commented Feb 13, 2015

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@mengxr
Copy link
Contributor

mengxr commented Feb 13, 2015

add to whitelist

@mengxr
Copy link
Contributor

mengxr commented Feb 13, 2015

ok to test

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27419 has started for PR 4580 at commit 9418562.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27419 has finished for PR 4580 at commit 9418562.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27419/
Test PASSed.

@ogeagla ogeagla changed the title [SPARK-5726] [MLLIB] Hadamard Vector Product Transformer [SPARK-5726] [MLLIB] Elementwise (Hadamard) Vector Product Transformer Feb 13, 2015
@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27446 has started for PR 4580 at commit 5bd4288.

  • This patch merges cleanly.

* Maps a vector to the hadamard product of it and a reference vector.
*/
@AlphaComponent
class ElementwiseProductTF extends UnaryTransformer[Vector, Vector, ElementwiseProductTF] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does TF mean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, just realized the TF in HashingTF stands for 'term frequencies', not 'transformer'. Will remove. Thanks for pointing out.

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27449 has started for PR 4580 at commit cafe8c9.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27446 has finished for PR 4580 at commit 5bd4288.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27446/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27449 has finished for PR 4580 at commit cafe8c9.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27449/
Test FAILed.

@ogeagla
Copy link
Contributor Author

ogeagla commented Feb 13, 2015

@mengxr the unit tests and style checks for this feature pass locally, and the jenkins build actually shows the test suite also passing, but there is a compilation failure, any suggestions to get the build green?

edit: rebased on master and still occurring

the error is return exit status 1 in run-tests, this line:
| grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including"

final edit: passing after another rebase

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27453 has started for PR 4580 at commit 453a502.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 13, 2015

Test build #27453 has finished for PR 4580 at commit 453a502.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27453/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Feb 15, 2015

Test build #27525 has started for PR 4580 at commit a7823e5.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 15, 2015

Test build #27525 has finished for PR 4580 at commit a7823e5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public class JavaStatefulNetworkWordCount
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27525/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Mar 13, 2015

Test build #28597 has started for PR 4580 at commit 7eb8f0f.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 14, 2015

Test build #28597 has finished for PR 4580 at commit 7eb8f0f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28597/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Mar 26, 2015

Test build #29243 has started for PR 4580 at commit e7ff5f2.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 26, 2015

Test build #29243 has finished for PR 4580 at commit e7ff5f2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer

@ogeagla
Copy link
Contributor Author

ogeagla commented May 7, 2015

Rebased.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32131 has started for PR 4580 at commit 90f7e39.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32131 has finished for PR 4580 at commit 90f7e39.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class StringArrayParam(parent: Params, name: String, doc: String, isValid: Array[String] => Boolean)
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer
    • class VectorAssembler(JavaTransformer, HasInputCols, HasOutputCol):
    • class HasInputCols(Params):

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32131/
Test FAILed.

@jkbradley
Copy link
Member

@ogeagla Please look at the updated createTransformFunc method in UnaryTransformer, and change your override to match it.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32140 has started for PR 4580 at commit fac12ad.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32140 has finished for PR 4580 at commit fac12ad.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwiseProduct]
    • class StringArrayParam(parent: Params, name: String, doc: String, isValid: Array[String] => Boolean)
    • class ElementwiseProduct(val scalingVector: Vector) extends VectorTransformer
    • class VectorAssembler(JavaTransformer, HasInputCols, HasOutputCol):
    • class HasInputCols(Params):

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32140/
Test PASSed.

@jkbradley
Copy link
Member

LGTM Merging into master and branch-1.4 Thanks very much!

asfgit pushed a commit that referenced this pull request May 7, 2015
See https://issues.apache.org/jira/browse/SPARK-5726

Author: Octavian Geagla <ogeagla@gmail.com>
Author: Joseph K. Bradley <joseph@databricks.com>

Closes #4580 from ogeagla/spark-mllib-weighting and squashes the following commits:

fac12ad [Octavian Geagla] [SPARK-5726] [MLLIB] Use new createTransformFunc.
90f7e39 [Joseph K. Bradley] small cleanups
4595165 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove erroneous test case.
ded3ac6 [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
37d4705 [Octavian Geagla] [SPARK-5726] [MLLIB] Incorporated feedback.
1dffeee [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
e436896 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove 'TF' from 'ElementwiseProductTF'
cb520e6 [Octavian Geagla] [SPARK-5726] [MLLIB] Rename HadamardProduct to ElementwiseProduct
4922722 [Octavian Geagla] [SPARK-5726] [MLLIB] Hadamard Vector Product Transformer

(cherry picked from commit 658a478)
Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
@asfgit asfgit closed this in 658a478 May 7, 2015
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
See https://issues.apache.org/jira/browse/SPARK-5726

Author: Octavian Geagla <ogeagla@gmail.com>
Author: Joseph K. Bradley <joseph@databricks.com>

Closes apache#4580 from ogeagla/spark-mllib-weighting and squashes the following commits:

fac12ad [Octavian Geagla] [SPARK-5726] [MLLIB] Use new createTransformFunc.
90f7e39 [Joseph K. Bradley] small cleanups
4595165 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove erroneous test case.
ded3ac6 [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
37d4705 [Octavian Geagla] [SPARK-5726] [MLLIB] Incorporated feedback.
1dffeee [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
e436896 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove 'TF' from 'ElementwiseProductTF'
cb520e6 [Octavian Geagla] [SPARK-5726] [MLLIB] Rename HadamardProduct to ElementwiseProduct
4922722 [Octavian Geagla] [SPARK-5726] [MLLIB] Hadamard Vector Product Transformer
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
See https://issues.apache.org/jira/browse/SPARK-5726

Author: Octavian Geagla <ogeagla@gmail.com>
Author: Joseph K. Bradley <joseph@databricks.com>

Closes apache#4580 from ogeagla/spark-mllib-weighting and squashes the following commits:

fac12ad [Octavian Geagla] [SPARK-5726] [MLLIB] Use new createTransformFunc.
90f7e39 [Joseph K. Bradley] small cleanups
4595165 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove erroneous test case.
ded3ac6 [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
37d4705 [Octavian Geagla] [SPARK-5726] [MLLIB] Incorporated feedback.
1dffeee [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
e436896 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove 'TF' from 'ElementwiseProductTF'
cb520e6 [Octavian Geagla] [SPARK-5726] [MLLIB] Rename HadamardProduct to ElementwiseProduct
4922722 [Octavian Geagla] [SPARK-5726] [MLLIB] Hadamard Vector Product Transformer
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
See https://issues.apache.org/jira/browse/SPARK-5726

Author: Octavian Geagla <ogeagla@gmail.com>
Author: Joseph K. Bradley <joseph@databricks.com>

Closes apache#4580 from ogeagla/spark-mllib-weighting and squashes the following commits:

fac12ad [Octavian Geagla] [SPARK-5726] [MLLIB] Use new createTransformFunc.
90f7e39 [Joseph K. Bradley] small cleanups
4595165 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove erroneous test case.
ded3ac6 [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
37d4705 [Octavian Geagla] [SPARK-5726] [MLLIB] Incorporated feedback.
1dffeee [Octavian Geagla] [SPARK-5726] [MLLIB] Pass style checks.
e436896 [Octavian Geagla] [SPARK-5726] [MLLIB] Remove 'TF' from 'ElementwiseProductTF'
cb520e6 [Octavian Geagla] [SPARK-5726] [MLLIB] Rename HadamardProduct to ElementwiseProduct
4922722 [Octavian Geagla] [SPARK-5726] [MLLIB] Hadamard Vector Product Transformer
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.

5 participants