LDA的实现

首先要感谢Wang Yi的帮助,我之前对统计模型总是没有深入的了解,最近仔细研究了LDA之后,发现这个模型具有很多矩阵模型没有的优点。而且这个算法的实现很简单。下面的图片就是主要代码

同时利用openmp实现了一个简单的并行版本,可以充分一下利用我机器的4个核。

轻松一下

Comments 1

  1. Yi Wang wrote:

    用OpenMP并行化LDA很棒!我吧我的代码也扩展到用OpenMP,弄了一个open source project,放在http://code.google.com/p/ompi-lda/

    Posted 18 八 2010 at 8:37 上午

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word