[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A worked out LDA example
- To: Rao Kambhampati <rao@asu.edu>
- Subject: A worked out LDA example
- From: Subbarao Kambhampati <rao@asu.edu>
- Date: Thu, 6 Dec 2012 07:19:28 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=l/CsKYeBzO6i21ZoKvqyT6KcDOpsSNUM5hA5obkkl5E=; b=KV4qDU/CCaZdyDSAW8J9XO6FCHLnc9aEg16TgawZuklGWcHg5gUpk/8OAEHkzo9Z8A PL1IAwkmXSUQU1IMwrYKwZfGonKGjknBIksGM9y7ITaZcRa75y/KBWJzx7r+7al4VYsR cx5gCCzN4c+u3lSg1abA5XFku/SfCLIq7Iyhybsjw+rzkRgZ7mFv9BBHeoRTyJr0AyvP ia97UKYQDh6HNud/N+DQ5r+sfSp7KE4ogKcjA/TD9SI1+hzok1KJu+iEXmalI8xyPG+/ wwSfWQYqi/w6osLAfN2wNbNhdegUu9CEXxOzySw0jl0CX9T7wOq1hXlcqZdEP44ycbCw XU4g==
- Sender: subbarao2z2@gmail.com
Folks
I am attaching the scan of four pages from Kevin Murphy's book on Machine Learning. The last page has a small worked out example of LDA parameter setting.
Here is how to read the file:
First page: This is there just to let you see the LDA plate model (as Kevin uses yet another notation to describe it--with \pi used in place of \theta, and q is used in place of z)
second page: shows the unrolled LDA model *before* and *after* the marginalizing of \pi. You will notice, as I mentioned in my mail yesterday, that when \pi variables are integrated out, q variables get correlated. (What is interesting here, if you look closely, is that the connections between the q variables are direction-less. That makes that part of the network a markov network (which we haven't discussed in the class) --rather than a bayes network. The whole network becomes a mixed graphical model after marginalization. This is part of the complexity under the hood. You note that Hinrich paper derives the gibbs sampling update rules directly from the join over the q variables, without bothering to see the graphical model.)
third page--the collapsed gibbs sampler is derived (with many more missing steps than in Hinrichs)
end of third and beginning of fourth page-- a short worked out example
regards
Rao
Attachment:
lda-kevin-murphy.pdf
Description: Adobe PDF document