Description Usage Arguments Value References Examples
View source: R/topic_modeling_core.R
This function takes an object of class lda_topic_model
and
draws samples from the posterior of either phi
or theta
. This is
useful for quantifying uncertainty around parametersof the final model.
1 2 |
object |
An object of class |
which |
A character of either 'theta' or 'phi', indicating from which matrix to draw posterior samples |
num_samples |
Integer number of samples to draw |
... |
Other arguments to be passed to |
Returns a data frame where each row is a single sample from the posterior.
Each column is the distribution over a single parameter. The variable var
is a facet for subsetting by document (for theta) or topic (for phi).
Heinrich, G. (2005) Parameter estimation for text analysis. Technical report. http://www.arbylon.net/publications/text-est.pdf
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.