Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Document log-probabilities and goodness of fit of LDA model

`logProb = logp(ldaMdl,documents)`

`logProb = logp(ldaMdl,counts)`

`logProb = logp(ldaMdl,bag)`

`[logProb,ppl] = logp(___)`

`___ = logp(___,Name,Value)`

`___ = logp(___,`

specifies additional options using one or more name-value pair arguments.`Name,Value`

)

The `logp`

uses the *iterated pseudo-count*
method described in

[1] Wallach, Hanna M., Iain
Murray, Ruslan Salakhutdinov, and David Mimno. "Evaluation methods for topic models." In
*Proceedings of the 26th annual international conference on machine
learning*, pp. 1105–1112. ACM, 2009. Harvard