This release is a pre-release and may not be stable for production use.
Topic modeling with latent Dirichlet allocation. lda aims for simplicity.
lda implements latent Dirichlet allocation (LDA) using collapsed Gibbs sampling. LDA is described in Blei et al. (2003) and Pritchard et al. (2000).
Installation
pip install lda
Getting started
lda.LDA implements latent Dirichlet allocation (LDA). The interface follows conventions found in scikit-learn.
>>> import numpy as np
>>> import lda
>>> X = np.array([[1,1], [2, 1], [3, 1], [4, 1], [5, 8], [6, 1]])
>>> model = lda.LDA(n_topics=2, n_iter, random_state=1)
>>> doc_topic = model.fit_transform(X) # estimate of document-topic distributions
>>> model.components_ # estimate of topic-word distributions; model.doc_topic_ is an alias
Requirements
Python 3 is required. The following packages are also required
Caveat
lda aims for simplicity over speed. If you are working with large corpora or want to use faster and more sophisticated topic models, consider using hca or MALLET. hca is written in C and MALLET_ is written in Java.
Important links
Documentation: http://pythonhosted.org/lda
Source code: https://github.com/ariddell/lda/
Issue tracker: https://github.com/ariddell/lda/issues
License
horizont is licensed under Version 2.0 of the Mozilla Public License.
Metadata
Release files for lda 0.1.0.dev2.g0925a91
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lda-0.1.0.dev2.g0925a91.tar.gz | 222.9 kB | Without provenance | Details for lda-0.1.0.dev2.g0925a91.tar.gz |
Release files / lda-0.1.0.dev2.g0925a91.tar.gz
| Download URL | lda-0.1.0.dev2.g0925a91.tar.gz |
|---|---|
| Size | 222.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b395f2457b6e25b282c8476163506ef638e9318219cb928e9a3e2bb9c7f99ff1
|
|
BLAKE2b-256 checksum How to use checksums |
69206901df97a391830e0bf0bfced0130a83e373cf0e6db69783c91822aab7be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lda 0.1.0.dev2.g0925a91
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.