Apply multiple models to given different number of topcis and log the perplexity to assess best model.

map_model(num_topics = seq(2, 98, by = 10), model_function = model_lda,
  ...)

get_perplexity_data(models)

# S3 method for model_collection
get_perplexity_data(models)

Arguments

num_topics

A vector or list of number of topics to run the model with.

model_function

A gensimr model function name to use.

...

Any other argument that would normally be passed to model_function.

models

An object of class model_collection as returned by map_model.