Loopy belief propagation for factor graphs on discrete variables, in JAX!
Project description
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
- Install the library using pip via:
pip install pgmax - 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
- Clone this project's GitHub Repository
- Install Poetry by following these instructions. Note: you may need to logout and log back in after running the install command for the
poetry --versioncommand to work in your shell environment. - 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. - Install the project's dependencies into your virtual environment with the command
poetry install. Your environment will now contain both developer and user dependencies!- 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.
- Do
pre-commit installto initialize pre-commit hooks
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37154181398bf01550aa74c2355be37861291165a1b45a459a9e0101e2dd37ff
|
|
| MD5 |
92eb665f8e4e8ea2aa005cec5e79f8e0
|
|
| BLAKE2b-256 |
fbd08a37bc1059e920996acaf00da118f6b83c29335dc97b5b94b75b120f88aa
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fac113585675e99919facd7dbb2058293f8b3afda8b8c1685cb84ce5145d516
|
|
| MD5 |
45cc524fa128478c77069704da2d92ff
|
|
| BLAKE2b-256 |
7b0e876bf6ffdd141a19a4402316e469c184231cd1c26e856da65d8440c41675
|