Package: tmfast 0.1.1
tmfast: Fast Topic Models Using Varimax
Fits topic models using varimax-rotated principal component analysis (PCA), following the "vintage factor analysis" approach of Rohe & Zheng (2020) <doi:10.48550/arXiv.2004.05387>. Leverages truncated PCA via 'irlba' for sparse matrices, enabling fast model fitting on large corpora. Includes an information-theoretic approach to vocabulary selection, 'broom'-compatible tidiers for extracting word-topic and topic-document matrices into a tidy data workflow, and samplers for constructing simulated corpora for benchmarking and method evaluation.
Authors:
tmfast_0.1.1.tar.gz
tmfast_0.1.1.tar.gz(r-4.7-any)tmfast_0.1.1.tar.gz(r-4.6-any)
tmfast_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
tmfast/json (API)
NEWS
| # Install 'tmfast' in R: |
| install.packages('tmfast', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dhicks/tmfast/issues
Pkgdown/docs site:https://dhicks.github.io
Last updated from:1342f37e06. Checks:4 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 297 | ||
| source / vignettes | OK | 479 | ||
| linux-release-x86_64 | OK | 317 | ||
| wasm-release | OK | 263 |
Exports:build_matrixcompare_betasdraw_corpusentropyexpected_entropyfit_varimaxhellingerinsert_topicsjournal_specificloadingsndHndRpeak_alphardirichletrenormrotationscoressolve_powertarget_powertidytidy_alltmfasttsneumapvarimax_irlba
Dependencies:assertthatclicpp11dplyrgenericsglueGPArotationirlbajaneaustenrlatticelifecyclemagrittrMatrixmnormtnlmepillarpkgconfigpsychpurrrR6RcpprlangSnowballCstringistringrtibbletidyrtidyselecttidytexttokenizersutf8vctrswithr
Fast topic modeling with real books
Rendered fromrealbooks.Rmdusingknitr::rmarkdownon May 30 2026.Last update: 2026-05-30
Started: 2026-05-30
Fitting topic models (and simulating text data) with tmfast
Rendered fromsimulated.Rmdusingknitr::rmarkdownon May 30 2026.Last update: 2026-05-30
Started: 2026-05-30
