qualityLDA | R Documentation |
Calculates and plots accuracyLDA, logLik, AIC and BIC for one or more LDA-objects.
qualityLDA(lda, dtm, plot = F, n = 5, type = 1)
lda |
Object of class LDA (or list of LDA objects). |
dtm |
document-term matrix. |
n |
Parameter to be passed to accuracyLDA. Number of top-terms to search for in the documents. Defaults to 5. |
type |
Parameter to be passed to accuracyLDA. Determines how the results are aggregated. Defaults to 1. If type==0 the function returns the number of each document's top-topic's n top-terms that are actually present in the document as a vector e; type==1 returns mean(e>0); type==2 returns mean(e==n); type==3 returns mean(e); type==4 returns median(e>0); type==5 returns median(e==n); type==6 returns median(e); type==7 returns min(e>0); type==8 returns min(e==n); type==9 returns min(e); |
accuracyLDA(lda,dtm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.