User Tools

Site Tools


cs401r_w2016:lab9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cs401r_w2016:lab9 [2018/03/21 16:51]
sadler [Hints:]
cs401r_w2016:lab9 [2018/03/27 22:38]
wingated
Line 29: Line 29:
  
 {{ :​cs401r_w2016:​lab8_pdtm.png?​direct&​500 |}} {{ :​cs401r_w2016:​lab8_pdtm.png?​direct&​500 |}}
 +
 +{{ :​cs401r_w2016:​gibbs_sampler_results.png?​direct&​500|}}
  
 Here, you can see how documents that are strongly correlated with Topic #3 appear every six months; these are the sustainings of church officers and statistical reports. Here, you can see how documents that are strongly correlated with Topic #3 appear every six months; these are the sustainings of church officers and statistical reports.
  
 Your notebook must also produce a plot of the log posterior of the data over time, as your sampler progresses. ​ You should produce a single plot comparing the regular Gibbs sampler and the collapsed Gibbs sampler. Your notebook must also produce a plot of the log posterior of the data over time, as your sampler progresses. ​ You should produce a single plot comparing the regular Gibbs sampler and the collapsed Gibbs sampler.
 +
 +To the right is an example of my log pdfs.
  
 ---- ----
Line 41: Line 45:
   * 40% Correct implementation of Gibbs sampler   * 40% Correct implementation of Gibbs sampler
   * 40% Correct implementation of collapsed Gibbs sampler   * 40% Correct implementation of collapsed Gibbs sampler
-  * 20% Final plots are tidy and legible+  * 20% Final plots are tidy and legible ​(at least 2 plots: posterior over time for both samplers, and heat-map of distribution of topics over documents)
  
 ---- ----
Line 120: Line 124:
  
 # topic distributions # topic distributions
-bs = np.zeros((V,​K))+bs = np.zeros((V,​K)) + (1/V)
 # how should this be initialized?​ # how should this be initialized?​
  
 # per-document-topic distributions # per-document-topic distributions
-pis = np.zeros((K,​D)) ​ +pis = np.zeros((K,​D)) ​+ (1/K)
 # how should this be initialized?​ # how should this be initialized?​
  
cs401r_w2016/lab9.txt ยท Last modified: 2021/06/30 23:42 (external edit)