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:
pip3 install tinytopics
Or install the development version from GitHub:
git clone https://github.com/nanxstats/tinytopics.git
cd tinytopics
python3 -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:
pip3 uninstall torch
pip3 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
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
Hashes for tinytopics-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb17f1cdb21194a6252c6c0bd1ab30351d9b0932f9763a50f65353d75f3397d6 |
|
MD5 | 97cc440468cbe0cd9b57df5fb1165a31 |
|
BLAKE2b-256 | a149f1e4e7bf73e34627ecb2a7a1bee7b10ff45cf5475c8efd43e98b0dcf7660 |