Topic Model Gibbs Sampling Inference 步骤

来源:互联网 发布:freebsd 安装mysql 编辑:程序博客网 时间:2024/05/14 03:26


1.  difference between hidden variables and hyperparameter


2. procudre


step 1: the complete-data likelihood, given hyperparameter

p(w, z, theta, pi | alpha, beta)

step 2: the observed datalikelihood, given hidden variables

p(w | theta, pi)

step 3: determine which hidden variable can be integrated out, i.e. collapsed out. 

theta, pi can be integrated out, thus the gibbs sampler is for p(z|w)

step 4: apply bayesian methods for full conditional distribution p(z_i|, z_-i, w)

p(z_i| z_-i, w) = p(z,w)/{integrate z_i, p(z,w)}

step 5: based on the equation above, we need to calculate thejoint distribution of p(z,w)


0 0
原创粉丝点击