Skip to content

Commit 6fa6f01

Browse files
committed
add dirichlet optimization utils and remove temporary files
1 parent 13ff4fe commit 6fa6f01

File tree

4 files changed

+1
-195
lines changed

4 files changed

+1
-195
lines changed

ptm/link_prediction.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

ptm/rtm_heldout.py

Lines changed: 0 additions & 157 deletions
This file was deleted.

utils/__init__.py

Whitespace-only changes.

utils/dirichlet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_collapsed_parameter_estimation():
112112
W = 200 # number of multinomial trials for each observation
113113

114114
_alpha = np.random.gamma(1,1) * np.random.dirichlet([1.]*K) # ground truth alpha
115-
115+
116116
obs = np.zeros([N,K])
117117
for i in xrange(N):
118118
theta = np.random.dirichlet(_alpha)

0 commit comments

Comments
 (0)