map_model: Map Models

Description Usage Arguments Details

View source: R/models.R

Description

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

Usage

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)

Arguments

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 model_function.

models

An object of class model_collection as returned by map_model, or a list of models for as_model_collection.

corpus

If passed perplexity is computed (recommended).

Details

model_collection object inherits from list.


news-r/gensimr documentation built on Jan. 9, 2021, 5:55 a.m.