Skip to main content

Loopy belief propagation for factor graphs on discrete variables, in JAX!

Project description

continuous-integration

PGMax

PGMax is a library for working with Factor Graphs in JAX. It currently provides an interface for specifying factor graphs of any type, as well as an efficient implementation of max-product belief propagation and inference on these graphs.

Installation Instructions

User

  1. Install the library using pip via: pip install pgmax
  2. By default this installs JAX for CPU. If you'd like to use JAX with a GPU and specific CUDA version (highly recommended), follow the official instructions here.

Developer

  1. Clone this project's GitHub Repository
  2. Install Poetry by following these instructions. Note: you may need to logout and log back in after running the install command for the poetry --version command to work in your shell environment.
  3. Navigate to this project's directory and activate a poetry shell via the command poetry shell. This creates and activates a virtual environment for you to use with this project.
  4. Install the project's dependencies into your virtual environment with the command poetry install. Your environment will now contain both developer and user dependencies!
    1. By default this installs JAX for CPU. If you'd like to use JAX with a GPU and specific CUDA version (highly recommended), follow the official instructions here.
  5. Do pre-commit install to initialize pre-commit hooks

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

pgmax-0.0.1.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

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

pgmax-0.0.1-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

Details for the file pgmax-0.0.1.tar.gz.

File metadata

  • Download URL: pgmax-0.0.1.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.5 Linux/5.4.0-47-generic

File hashes

Hashes for pgmax-0.0.1.tar.gz
Algorithm Hash digest
SHA256 37154181398bf01550aa74c2355be37861291165a1b45a459a9e0101e2dd37ff
MD5 92eb665f8e4e8ea2aa005cec5e79f8e0
BLAKE2b-256 fbd08a37bc1059e920996acaf00da118f6b83c29335dc97b5b94b75b120f88aa

See more details on using hashes here.

File details

Details for the file pgmax-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pgmax-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 52.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.5 Linux/5.4.0-47-generic

File hashes

Hashes for pgmax-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fac113585675e99919facd7dbb2058293f8b3afda8b8c1685cb84ce5145d516
MD5 45cc524fa128478c77069704da2d92ff
BLAKE2b-256 7b0e876bf6ffdd141a19a4402316e469c184231cd1c26e856da65d8440c41675

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