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 Both sides next revision
cs401r_w2016:lab9 [2018/03/21 16:51]
sadler [Hints:]
cs401r_w2016:lab9 [2018/03/26 18:08]
sadler [Hints:]
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)