This routine uses the plda application from Google to fit a Latent Dirichlet Allocation model.
Currently IO is required "both ways".
1 2 |
infile |
A string pointing to the input dataset. |
outfile |
A string pointing to the output data file. |
compute.loglik |
logical; controls whether the model log-likelihood should be returned. |
num.topics |
integer; determines the number of topics in the topic model. |
alpha |
numeric; |
beta |
numeric; |
niter |
integer; the total number of iterations to perform in fitting the model. |
burnin |
The number of burnin iterations (for the Gibbs
sampler). Must be no greater than |
.
verbose |
logical; controls if "Iteration <iter>" should be printed at each iteration. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.