Description Usage Arguments Details
Apply multiple models to given different number of topcis and log the perplexity to assess best model.
1 2 3 4 5 6 | map_model(num_topics = seq(2, 98, by = 10), model_function = model_lda,
...)
as_model_collection(models, corpus = NULL)
get_perplexity_data(models)
|
num_topics |
A vector or list indicating number of topics to use for each model. |
model_function |
A gensimr model function name to use. |
... |
Any other argument that would normally be passed to |
models |
An object of class |
corpus |
If passed perplexity is computed (recommended). |
model_collection
object inherits from list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.