https://github.com/lasy/alto
'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.
https://github.com/lasy/alto
r-package topic-model
Last synced: 5 months ago
JSON representation
'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.
- Host: GitHub
- URL: https://github.com/lasy/alto
- Owner: lasy
- License: other
- Created: 2021-05-31T21:37:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-21T13:08:57.000Z (almost 2 years ago)
- Last Synced: 2024-06-22T05:46:00.089Z (almost 2 years ago)
- Topics: r-package, topic-model
- Language: R
- Homepage:
- Size: 44.1 MB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/",
out.width = "100%"
)
```
# alto
[`alto`](https://lasy.github.io/alto/index.html) 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.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("lasy/alto")
```
## Help
We welcome questions and comments about the package either through
[github](https://github.com/lasy/alto/issues) or email.