Topic modeling via sum-to-one constrained neural Poisson non-negative matrix factorization
Project description
tinytopics 
Topic modeling via sum-to-one constrained neural Poisson NMF.
Built with PyTorch, runs on both CPUs and GPUs.
Installation
You can install tinytopics from PyPI:
pip install tinytopics
Or install the development version from GitHub:
git clone https://github.com/nanxstats/tinytopics.git
cd tinytopics
python -m pip install -e .
GPU support
The above will install the CPU version of PyTorch by default. To enable GPU support, follow the PyTorch official guide to install the appropriate PyTorch version.
For example, install PyTorch for Windows with CUDA 12.4:
pip uninstall torch
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
To manage the PyTorch dependency under a project context using virtual environments, you might want to set up manual sources. For example, using Rye.
Examples
After tinytopics is installed, try examples from:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinytopics-0.4.0.tar.gz.
File metadata
- Download URL: tinytopics-0.4.0.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8523a388d68eda6308090d9662a53f1eeccc6722e3c3ba00b9fe03bf1aa709a8
|
|
| MD5 |
20cb15a91fe58d5254eae50038106cba
|
|
| BLAKE2b-256 |
cfd2d20fcab5d46c755572608d81fbb9e0783238bf22f14793d56a5a2cfe962a
|
File details
Details for the file tinytopics-0.4.0-py3-none-any.whl.
File metadata
- Download URL: tinytopics-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4403966b2a723531b687c275a771811f8afee6e09bc0c3d56243db700ebfbc70
|
|
| MD5 |
f2dc53d20b32e8e2e761c99d8b8b95c9
|
|
| BLAKE2b-256 |
e0a976c150ec8701d4933381546ce12c181157ce7069ac36533792268ea39817
|