GithubHelp home page GithubHelp logo

gerhobbelt / lda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nanjunxiao/lda

0.0 0.0 0.0 17.18 MB

Three open source versions of LDA with collapsed Gibbs Sampling, modified by nanjunxiao

Makefile 0.01% HTML 0.04% C 0.18% C++ 99.75% Perl 0.01% Batchfile 0.01% Shell 0.01% Python 0.02%

lda's Introduction

LDA: Latent Dirichlet Allocation

This repository includes three open source versions of LDA with collapsed Gibbs Sampling, modified by nanjunxiao.

GibbsLDA++ single thread,written in C++

ompi-lda multi-node/multi-threads, written in C++

online_twitter_lda multi-threads,written in Python

collapsed Gibbs LDA reference : my blog

What's New

1. GibbsLDA++

fixed bugs:

1). memory leakage. 'delete[] p' instead of 'delete p',when p points to an Array.

2). Array out of bound. (double)random() / RAND_MAX in [0,1]

int topic = (int)(((double)random() / RAND_MAX) * K);  -->  int topic = (int)(((double)random() / RAND_MAX + 1) * K);
double u = ((double)random() / RAND_MAX) * p[K - 1];   -->  double u = ((double)random() / RAND_MAX + 1) * p[K - 1];

2. ompi-lda

fixed bug:

1). infer.cc bugs.

2). rm 'sampler.UpdateModel(corpus)' in lda.cc.

add features:

1). add theta twords file output.

2). add partial boost's hpp/cpp in include dir, so can make directly.

3. online_twitter_lda

add features:

1). add theta phi mat file output.

TODO

ompi-lda

1). twordsnum can configure.

2). rewrite cmd_flag without boost, so can remove include dir.

3). rewrite makefile.

lda's People

Contributors

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