GithubHelp home page GithubHelp logo

devsinghsachan / simplelda-r Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cjrd/simplelda-r

0.0 2.0 0.0 3.35 MB

a simple R implementation of variational inference for LDA

License: MIT License

R 100.00%

simplelda-r's Introduction

This code provides a simple and straightforward (and slow!) implementation of variational expectation maximization inference for latent Dirchlet allocation. Check https://github.com/cjrd/SimpleLDA-R to make sure you have the most up-to-date version of this code and the accompanying tutorial.

Author: Colorado Reed (colorado . j . reed At gmail . com)

You are free to use this code and tutorial in anyway that you see fit (I encourage reproducing this code in your own fashion and discourage plagiarism).

NOTE: This tutorial is largely based on the original LDA paper by David Blei, Andrew Ng, and Michael Jordan: http://www.cs.berkeley.edu/~blei/papers/blei03a.pdf


lda-tutorial-reed.pdf: contains a conversational tutorial on latent Dirchlet allocation, along with a full pseudocode implementation. The R code in this file directly draws from this pseudocode.

cololda.R The implementation of the LDA inference method discussed above. The document is commented to aid readability and encourage the interested reader to work through the actual LDA implementation---convince yourself that LDA isn't magic!

auxfunctions.R Auxiliary functions that have been removed from the main script (cololda.R) to improve readability. Source these functions before sourcing cololda.R

data: folder contains a formatted corpus of 2246 documents from the Associated Press -- acquired from Dave Blei: http://www.cs.princeton.edu/~blei/lda-c/index.html

simplelda-r's People

Contributors

cjrd avatar

Watchers

James Cloos avatar Devendra Singh Sachan avatar

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.