
Calculate LDA model perplexities for a range of topic numbers
Source:R/lda_models.R
calculate_lda_perplexities.Rd
calculate_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_lda
k
The number of topics to estimate.
min_prevalence
The lowest percentage (0-1) of samples taxa need to be present in for the taxa to be used in model estimation.
taxon
The column name in the taxa table with taxa identifiers.
sample
The column name in the sample table with sample identifiers.