
Calculate LDA model perplexities for a range of topic numbers
Source:R/lda_models.R
calculate_lda_perplexities.Rdcalculate_lda_perplexities() estimates LDA models for a range of topic numbers
and returns the perplexity of each model.
Arguments
- ta
A tidytacos object.
- k_range
A range of topic numbers to estimate.
- seed
A seed for reproducibility.
- ...
Arguments passed on to
perform_ldakThe number of topics to estimate.
min_prevalenceThe lowest percentage (0-1) of samples taxa need to be present in for the taxa to be used in model estimation.
taxonThe column name in the taxa table with taxa identifiers.
sampleThe column name in the sample table with sample identifiers.