Giter VIP home page Giter VIP logo

ldavem's Introduction

LDA Variational EM Algorithm

This R package implements the variational expectation-maximization (VEM) algorithm for the latent Dirichlet allocation (LDA) model. This VEM algorithm is for the LDA full Bayesian model. Except for this additional feature, this implementation is quite similar to the original implementation of the LDA VEM algorithm by Dr. David Blei.

For package documentation run

help("ldavem")

in an R console. All major functions and datasets are documented and linked to the package index. Raw data files for each dataset are available in the data-raw folder. To load raw data see demo/load_raw_data.R .

To see all demo R scripts available in this package, run

demo(package="ldavem")

in an R console. Some scripts can be executed via running

demo(file-name, package="ldavem")

in an R console. The rest of them may require commandline arguments for execution. Please see the documentation provided in each script before execution.

Authors

Dependencies

This package uses the following R packages, which are already included in this R package.

  • Rcpp
  • RcppArmadillo based on the Armadillo C++ package
  • lattice
  • Hyperparameter optimization is adapted from Blei (2004)'s implementation

Installation Guide

  • Download the package source from Git Download Link
  • Unzip the dowloaded file and rename the folder ldavem-master to ldavem
  • To install ldavem run R CMD INSTALL ldavem on the commandline
  • To uninstall ldavem run R CMD REMOVE ldavem on the commandline

References

  1. Blei, D. M., Ng, A. Y. and Jordan, M. I. (2003). Latent Dirichlet allocation. Journal of Machine Learning Research 3 993-1022.
  2. Blei, D. M. (2004). C implementation of variational EM for latent Dirichlet allocation (LDA)

Acknowledgements

Clint is supported by the NIH Grant #7 R21 GM101719-03 and the University of Florida Informatics Institute.

I would like to thank Dr. George Michaildis and Wei Xia for the valuable discussions and critics that helped the development.

ldavem's People

Contributors

clintpgeorge avatar

Watchers

James Cloos avatar  avatar

Forkers

bonaldli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.