Run the PCLDA (default Polya Urn) sampler
1 2 3 | sample_pclda(ldaconfig, ds, iterations = 2000,
samplerType = "cc.mallet.topics.PolyaUrnSpaliasLDA", testset = NULL,
save_sampler = TRUE)
|
ldaconfig |
LDA config object |
ds |
LDA dataset |
iterations |
number of iterations to run |
samplerType |
Java class of the sampler. Must implement the LDASampler interface |
testset |
If give, the left-to-right held out log likelihood will be calculated on this dataset |
save_sampler |
booean indicating that the sampler should be saved to file after finishing (default TRUE) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.