You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jli05 <gi...@git.apache.org> on 2016/11/27 16:37:24 UTC

[GitHub] spark pull request #16023: [SPARK-18599] Add Spectral LDA algorithm

GitHub user jli05 opened a pull request:

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

    [SPARK-18599] Add Spectral LDA algorithm

    The Spectral LDA algorithm transforms the LDA problem to an orthogonal tensor decomposition problem. [[Anandkumar 2012]] establishes theoretical guarantee for the convergence of orthogonal tensor decomposition.
    
    This algorithm first builds 2nd-order, 3rd-order moments from the empirical word counts, orthogonalize them and finally perform the tensor decomposition on the empirical data moments. The whole procedure is purely linear and could leverage machine native BLAS/LAPACK libraries (the Spark needs to be compiled with `-Pnetlib-lgpl` option).
    
    It achieves competitive log-perplexity vs Online Variational Inference in the shortest time. It also has clean memory usage \u2013 as of v2.0.0 we've experienced crash due to memory problem with the built-in Gibbs Sampler or Online Variational Inference, but never with the Spectral LDA algorithm. This algorithm is linearly scalable.
    
    The official repo is at https://github.com/FurongHuang/SpectralLDA-TensorSpark. We refactored for the Spark coding style and interfaces when porting over for the PR. We wrote a report describing the algorithm in detail and listing test results at https://www.overleaf.com/read/wscdvwrjmtmw. It's going to enter our official repo soon.
    
    REFERENCES
    Anandkumar, Anima, et al., Tensor decompositions for learning latent variable models, 2012, https://arxiv.org/abs/1210.7559.

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

    $ git pull https://github.com/jli05/spark spectral_LDA

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

    https://github.com/apache/spark/pull/16023.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 #16023
    
----
commit 71b0ebafdf2d7a14507a3e2789a3ccada1aa7433
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-19T17:46:23Z

    initial commit

commit 7f9eb0b34525558b19683056de1cee38bfe25d53
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-19T18:32:24Z

    add dependency scalaxy-loops for mllib

commit 005edbceadd8774f8edbd7eaeec1ac7980941a49
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-19T18:48:38Z

    fix license claimers

commit 6434d09600c189ea907736bcbe66b093cad15c82
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-19T20:24:32Z

    fix coding styles

commit 76a5eb26835c8edb7915a9d8a03c2121c5024a59
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-21T20:53:35Z

    add SpectralLDAUtilsSuite

commit 636626eb3cb76bf74a27f86a001961b4dd8176cc
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-21T21:19:28Z

    add TextProcessorSuite

commit fc7d8d957c53f255eee28a5d69c8f2781bc1b996
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-21T22:42:50Z

    add DataCumulantSuite

commit a803bcb8e376d9bae70918b7b8f42ca9a94afd87
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-22T13:41:56Z

    add TensorLDASuite

commit 61ba139b4e888df112c1f86d3b170a608262ce1f
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-22T18:50:52Z

    add parameter checking

commit b07a4255865c3553c2c6d22367302a23aecc0dce
Author: Jencir Lee <jl...@icloud.com>
Date:   2016-11-22T18:51:22Z

    add TensorLDA into Spark

----


---
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 issue #16023: [SPARK-18599] Add Spectral LDA algorithm

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

    https://github.com/apache/spark/pull/16023
  
    Per the comments on the JIRA, could you please close this issue pending further discussion?  Thank you!


---
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 issue #16023: [SPARK-18599] Add Spectral LDA algorithm

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

    https://github.com/apache/spark/pull/16023
  
    Can one of the admins verify this patch?


---
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 #16023: [SPARK-18599] Add Spectral LDA algorithm

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

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


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