Sitelet https://github.com/lasy/alto
Skip to content
lasyPublic

About

'alto' is an R package that aligns topics from different LDA models, computes metrics for quantifying the goodness of alignment, and provides visualization functions to explore the alignment and robustness of topics across environments or LDA hyper-parameters.

Topics

Resources

Stars

18 stars

Watchers

3 watching

Forks

Repository files navigation

alto

badge

alto is an R package for aligning topics across a collection of LDA models. It provides functions to support the most common tasks in the analysis workflow,

  • run_lda_models() fits a collection of LDA models across resolution levels
  • align_topics() aligns topics across a collection of LDA models
  • topics() provides metrics of alignment quality
  • plot() shows the flow of alignment weight across resolution levels
  • plot_beta() shows the topics associated with each underlying model

Alignment can be used for (multiresolution) exploratory analysis. By highlighting topics that are robust across choices of K, it can also support evaluation of LDA models.

The figure above shows an example alignment between topic models. See the vignette “Using `alto` on vaginal microbiome data” to reproduce this figure.

You can learn more about alto’s algorithm and use cases in our paper:

Fukuyama, J., Sankaran, K., & Symul, L. (2022). Multiscale analysis of count data through topic alignment. In Biostatistics (Vol. 24, Issue 4, pp. 1045–1065). Oxford University Press (OUP). https://doi.org/10.1093/biostatistics/kxac018

Installation

You can install the development version from GitHub with:

# install.packages("pak")
pak::pak("lasy/alto")

Help

We welcome questions and comments about the package either through github or email.

About

'alto' is an R package that aligns topics from different LDA models, computes metrics for quantifying the goodness of alignment, and provides visualization functions to explore the alignment and robustness of topics across environments or LDA hyper-parameters.

Topics

Resources

Stars

18 stars

Watchers

3 watching

Forks

Contributors

Languages