powered by
tidylda
glance constructs a single-row summary "glance" of a tidylda topic model.
glance
# S3 method for tidylda glance(x, ...)
glance returns a one-row tibble with the following columns:
tibble
num_topics: the number of topics in the model
num_topics
num_documents: the number of documents used for fitting
num_documents
num_tokens: the number of tokens covered by the model
num_tokens
iterations: number of total Gibbs iterations run
iterations
burnin: number of burn-in Gibbs iterations run
burnin
an object of class tidylda
other arguments passed to methods,currently not used
# \donttest{ dtm <- nih_sample_dtm lda <- tidylda(data = dtm, k = 10, iterations = 100, burnin = 75) glance(lda) # }
Run the code above in your browser using DataLab