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
Next revision Both sides next revision
cs401r_w2016:lab9 [2018/03/21 16:51]
sadler [Hints:]
cs401r_w2016:lab9 [2018/03/26 19:10]
sadler [Grading standards:]
Line 41: Line 41:
   * 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 120:
  
 # 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)