FastCao2009 | R Documentation |
The function picks up the suggestion of Cao et al. 2009 for a density-based method for LDA model selection and offers an implementation that is substantially faster than ldatuning.
FastCao2009(x) ## S4 method for signature 'TopicModel' FastCao2009(x) ## S4 method for signature 'matrix' FastCao2009(x) ## S4 method for signature 'jobjRef' FastCao2009(x)
x |
A LDA model (S4 class from topicmodels package). |
if (!mallet_is_installed()) mallet_install() fname <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin") lda <- mallet_load_topicmodel(fname) lda2 <- as_LDA(lda) FastCao2009(lda2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.