Skip to content

Fixed bound computation mistake in author-topic model#1156

Merged
tmylk merged 1 commit into
piskvorky:developfrom
olavurmortensen:atmodel_bound_fix
Feb 20, 2017
Merged

Fixed bound computation mistake in author-topic model#1156
tmylk merged 1 commit into
piskvorky:developfrom
olavurmortensen:atmodel_bound_fix

Conversation

@olavurmortensen
Copy link
Copy Markdown
Contributor

@olavurmortensen olavurmortensen commented Feb 19, 2017

Noticed a mistake in the bound method of the author-topic model (atmodel). This is a very simple fix.

Basically, I forgot to multiply the expectation over author assignments (np.log(1.0 / len(authors_d))) by the number of words in the document sum(cts), and fixed that in this PR.

This fix changes the bound, only by adding a factor that depends only on the data (constant w.r.t. the model).

…gnments by the number of words in the document.
@tmylk tmylk merged commit 5a7b43e into piskvorky:develop Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants