H-LDA (Blei C++) 关键代码分析

来源:互联网 发布:网络语烧钱是什么意思 编辑:程序博客网 时间:2024/05/05 10:50

1. Sampling levelallocations  (all prob. is calculated and represented by log)




Parameters:

GEM(m,π):

m:  gem_mean (mean of the stick leagth) ;

π:  gem_scale (variance of the stick leagth) .

 

Larger m, more likelyassign more words from each doc to higher levels of abstraction.

Larger π, wordallocations will not likely deviate from such a setting.

 

In the stick-breakingprocess:

  Θ ~ GEM(m,π);

  Vi ~ Beta(mπ, (1-m)π).





2. Sampling Paths










0 0
原创粉丝点击