Description Usage Arguments Value Examples
Run weighted LDA models.
1 2 |
docs |
texts read via |
model |
Weighted LDA model: "base", "covariates", and "dynamic" |
number_of_topics |
the number of regular topics |
model_settings |
a list of model specific settings |
priors |
a list of priors of parameters |
options |
a list of options |
keep |
a vector of the names of elements you want to keep in output |
A keyATM_output object containing:
Number of regular unseeded topics
Number of word types
Number of documents
Normalized topic proportions for each document
Normalized topic specific word generation probabilities
Number of tokens assigned to each topic
Number of times each word type appears
Length of each document in tokens
Words in the vocabulary
Perplexity and log-likelihood
Estimated p
Organized values stored during iterations
Outputs you specified to store.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# Weighted LDA
out <- weightedLDA(
keyATM_docs, model = "base", number_of_topics = 5
)
# Weighted LDA Covariates
out <- weightedLDA(
keyATM_docs, model = "covariates", number_of_topics = 5,
model_settings(covariates_data = cov_matrix)
)
# Weighted LDA Dynamic
out <- weightedLDA(
keyATM_docs, model = "dynamic", number_of_topics = 5,
model_settings(time_index = time_index_vec, num_states = 5)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.