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 License

Topic modeling via sum-to-one constrained neural Poisson NMF. Built with PyTorch, runs on both CPUs and GPUs.

Installation

Using pip

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 .

Install PyTorch with GPU support

The above will likely install the CPU version of PyTorch by default. To install PyTorch with GPU support, follow the official guide.

For example, install PyTorch for Windows with CUDA 12.6:

pip uninstall torch
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

Install alternative PyTorch versions

For users stuck with older PyTorch or NumPy versions, for instance, in HPC cluster settings, a workaround is to skip installing the dependencies with --no-deps and install specific versions of all dependencies manually:

pip install tinytopics --no-deps
pip install torch==2.2.0

Use tinytopics in a project

To have a more hassle-free package management experience, it is recommended to use tinytopics as a dependency under a project context using virtual environments.

You should probably set up a manual source/index for PyTorch. As examples, check out the official guidelines when 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.5.tar.gz (3.7 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.5-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tinytopics-0.7.5.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for tinytopics-0.7.5.tar.gz
Algorithm Hash digest
SHA256 15417c853b04a81783bc3e622ce0d779ab9f3b96b006386322aa13459d38e405
MD5 66ba79833f3077c821bd657834b5c166
BLAKE2b-256 b4f3d8d7527489da700c81835776c0a80e7df266913f7a33800ffd894bb0dc58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tinytopics-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for tinytopics-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8fd2cde86a36723085f59bcb2a4e97f5c56c84a55621f72500f136d241c16b64
MD5 deb844cea6cf3c3beb57a6855b71afdd
BLAKE2b-256 ba2ed1a4764b8f2b920010ff84726d9a68082304375400ac1a6220286860c670

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