Skip to main content

Topic modeling via sum-to-one constrained neural Poisson non-negative matrix factorization

Project description

tinytopics

PyPI version Python versions CI Tests mkdocs PyPI Downloads License

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
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:

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 or using uv.

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

tinytopics-0.7.0.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tinytopics-0.7.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file tinytopics-0.7.0.tar.gz.

File metadata

  • Download URL: tinytopics-0.7.0.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for tinytopics-0.7.0.tar.gz
Algorithm Hash digest
SHA256 07c1ddda143b82159bdbc4c0bc30de7c229d3e35dad031b9c147f8f2dddfa774
MD5 0be262269658bdae1dfad218506b5ea1
BLAKE2b-256 4200412c60a68a5bb2f0b2fde231cefd9692e4d7bcfd35f616d30e5bc3f881e9

See more details on using hashes here.

File details

Details for the file tinytopics-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: tinytopics-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for tinytopics-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa3fd58db6dc339a11ecb8d597c2dac256a458eecba7e9d1133afc4bdeecf81
MD5 ed14a72407dae727ead83f5327cfdc91
BLAKE2b-256 c4298b14fc7309d2c858a11d7a117486c5c9c599ca403d4a264e982b2da2f26d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page