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 Mypy check Ruff check Documentation 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.9.2.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

tinytopics-0.9.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tinytopics-0.9.2.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tinytopics-0.9.2.tar.gz
Algorithm Hash digest
SHA256 7cdf11cc09f7338e795ec4d8350718cf8830c539b0b9a61cbb1dcc3be9f64630
MD5 64fc33a2e791cd1d1c73b7d0b0a9c422
BLAKE2b-256 e5ea917e66c54cb966c203a7bcc4c9cc63f648eaaf58dc8529e0ec803df21437

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tinytopics-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tinytopics-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69c8d0955f0b0adc05b4327453b131d93545fd827d78c51ffb5e604b4cfe11e7
MD5 2ba64ef794441a69490fdb0ea7540b35
BLAKE2b-256 bee00277237427d361e77432e42bec15180f4a0d8fa634606402d0a3bf47b691

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