Probabilistic Programming Language for Bayesian Inference
Project description
Bean Machine
Overview
Bean Machine is a probabilistic programming language for inference over statistical models written in the Python language using a declarative syntax. Bean Machine is built on top of PyTorch and Bean Machine Graph, a custom C++ backend. Check out our tutorials and Quick Start to get started!
Installation
Bean Machine supports Python 3.7-3.10 and PyTorch 1.12.
Install the Latest Release with Pip
python -m pip install beanmachine
Install from Source
To download the latest Bean Machine source code from GitHub:
git clone https://github.com/facebookresearch/beanmachine.git
cd beanmachine
Then, you can choose from any of the following installation options.
Anaconda
We recommend using conda to manage the virtual environment and install the necessary build dependencies.
conda create -n {env name} python=3.8; conda activate {env name}
conda install -c conda-forge boost-cpp eigen=3.4.0
python -m pip install .
Docker
docker build -t beanmachine .
docker run -it beanmachine:latest bash
Validate Installation
If you would like to run the builtin unit tests:
python -m pip install "beanmachine[test]"
pytest src
License
Bean Machine is MIT licensed, as found in the LICENSE file.
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 Distributions
File details
Details for the file beanmachine-0.2.0.tar.gz
.
File metadata
- Download URL: beanmachine-0.2.0.tar.gz
- Upload date:
- Size: 450.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2424fde5959f1a37827ece8c7a83f12a09f0a19330b209b0d9d437d4ab5c2b58 |
|
MD5 | 67e5b4752ede9cc70d2995e62fcbebf6 |
|
BLAKE2b-256 | 85b78aca535b18561eec9576eed7c214efa641ab4b70a2f856aef42f1abdb31e |
File details
Details for the file beanmachine-0.2.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 881.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802ab28d7a3cb908861e781480f9ccf974c782c76b406d6b2c6f4fe221c3f4ac |
|
MD5 | c8f120b7246a55febb7e6374964df0b8 |
|
BLAKE2b-256 | 49f1d041720482761f880a40524dc535a8167ea196261c5a1e33b070b684d080 |
File details
Details for the file beanmachine-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed8ca6fadbd745eae1f6dd1355e391684af8328739394623d0902fa37a65eab |
|
MD5 | 73825b89b08f6744843c8985e584bbd6 |
|
BLAKE2b-256 | 368afc5dbc71dfcd7a732823e45e754bb2e094375483d025b52b0310356c6760 |
File details
Details for the file beanmachine-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 963.2 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f2ac014f3ab55c1fd8c26ea25c09f5b5c3d8d8940afac8f6bec2d74e0e66ffb |
|
MD5 | 2600b268ca64360605334f974283a2c7 |
|
BLAKE2b-256 | 515c98a8fb3f781b4653a6c12079b6a409087807a622991fa5353ed570f0ef86 |
File details
Details for the file beanmachine-0.2.0-cp310-cp310-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp310-cp310-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e8b6fc5c709db02645716dcdde883751667321e0db9a38f07b1c72177fcfba |
|
MD5 | 52d4703c3399aba041a6358cdafea7ad |
|
BLAKE2b-256 | 5e047c546041d39e3fe27eaa38a83b95aa8c51f3ab4e147463ddb2b0d27a14b0 |
File details
Details for the file beanmachine-0.2.0-cp310-cp310-macosx_10_13_universal2.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp310-cp310-macosx_10_13_universal2.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.10, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3929555e5f553c6c2a7b62ce709a6e5865b7b1bb31c685db0a86b9b253eeff56 |
|
MD5 | 06e0f46462dd60cfbc8f024d2b2dc879 |
|
BLAKE2b-256 | 4094b4ac658ce63f8ac9c7046819a52c135bf32f9b80c2031a6c591e701a2b77 |
File details
Details for the file beanmachine-0.2.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 877.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54bef2401a650868569c3c554daca75d497cc422334efb661498abb951b73cae |
|
MD5 | 6dbb1a716f8a25f903685e3fccf63662 |
|
BLAKE2b-256 | 52e0ac88362318d9197c719a15d390273e51ced6bb47b9ec2edb33040588e916 |
File details
Details for the file beanmachine-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aabc3842875cfd27ef58afb401861ff5f731fb9f72796d632ee0dc5c64e1edd1 |
|
MD5 | 62065fea458adb4f789810453789a3ab |
|
BLAKE2b-256 | 4382ec89890db5c50660c33e4e1ef43c993d925aff34e244264e8a218570d47f |
File details
Details for the file beanmachine-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 963.3 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26187d0d090c99e929d370c6e6a9a03c032ad0abc25a717e2877b2e3ea22cd23 |
|
MD5 | 4ff161704dc865f588799d0877e7f6f9 |
|
BLAKE2b-256 | 8c7f748858fab5a8daf941c6ac2f2f26878998ac56e92a851b72ee00e8b5ef46 |
File details
Details for the file beanmachine-0.2.0-cp39-cp39-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp39-cp39-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0bf402abc15254966ebf5857137465475ecdf2483a0f3693a9fb3fe8af8d43 |
|
MD5 | 6b534122d1b07fcd2edf77db4fa65c69 |
|
BLAKE2b-256 | a1b2d6c49f3c7fcd22df320333160005c198bd8c5b32138f1546105104070a92 |
File details
Details for the file beanmachine-0.2.0-cp39-cp39-macosx_10_13_universal2.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp39-cp39-macosx_10_13_universal2.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.9, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989496332fae83ea8b38f9396542d273f92a8c276567a742ccc9316dd60bf0f9 |
|
MD5 | 49553f4798757a06621811d5a18b3c1a |
|
BLAKE2b-256 | 8822e95f1ce9b2832dcfce3f5d8fe68f6de97ab063bd299b6a7b038f1e6444ca |
File details
Details for the file beanmachine-0.2.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 881.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b60b6d55b6110cce0728d8dc6a49519b5746534495b8ec8499e72c52902e20b |
|
MD5 | 2df92d08490c76e4bdd5c8c11f564055 |
|
BLAKE2b-256 | e8b6517a9d6d12905380b68d1d44ed57c265a3ccbc5e2845d4ec7b0302a1484d |
File details
Details for the file beanmachine-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | effa1085206d71f974daf7552491a914251313989c762cecc9a4d87f7e5bef54 |
|
MD5 | b92b04d15749629a9c10860cdc3248ff |
|
BLAKE2b-256 | 68f57233a945b7d4786d451bf20c02a3be76f08abc4b8e3d62e6f1bd1f957903 |
File details
Details for the file beanmachine-0.2.0-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 963.2 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e402fcdefd66ff4e0c589e08b02e1bfa7fb053f72235c9506da5a6ca8c9e034d |
|
MD5 | 8a05991fe092f06fff43984ca1ed8bfe |
|
BLAKE2b-256 | a0e2dacc39ee7493abe5715765bc1c1ef523c98b1b05eb2e88d724c5d00a7281 |
File details
Details for the file beanmachine-0.2.0-cp38-cp38-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp38-cp38-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3524b6bc17b5645fec2c3f2467b450269ef28419cb966c53911c20d1fcd0d64 |
|
MD5 | c370edb944423600c6636ffcacf63f9c |
|
BLAKE2b-256 | 49a6d98fa96f23233d52e53bc1d3a0d774a8cf00fee30ec39772d2c06fe0417a |
File details
Details for the file beanmachine-0.2.0-cp38-cp38-macosx_10_13_universal2.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp38-cp38-macosx_10_13_universal2.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.8, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be387db09b50dc213495a06cd37cf9d0f1bcfacbe8c788cd4ca4324e5a3e0f4d |
|
MD5 | deec7a1f670543fd5977bca7a04dfd45 |
|
BLAKE2b-256 | 8d032f5f52eca82001d2a4d893fd800b9495ecef6ad09366c698d8f25356b048 |
File details
Details for the file beanmachine-0.2.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 880.5 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c15e8b46229ca95bf2b28ebb702a218aa508e976ceaced1e62c57a8dc4a1fd63 |
|
MD5 | c90910f4912ebe9fd80d9ad7ec40d794 |
|
BLAKE2b-256 | 0c3251c69cd54c8bc55b832595cab108feac0ea3bf8327c834332b6293209836 |
File details
Details for the file beanmachine-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e12a352ca414c03123b2667f4f11ebb58f8da7ab4feb753a5b1085cd6aad41 |
|
MD5 | 04db59818d74cc9bfb4aa4a4eea0ff08 |
|
BLAKE2b-256 | efbdb129a9e72b325e4683e0c45706a5a43fd7c944dac01b7a8b90ae1723abe0 |
File details
Details for the file beanmachine-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: beanmachine-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 470ea5454705c408d152a644d811ec5a132f06b3b89602b8525b84d94ecec0aa |
|
MD5 | 348c91244da1b4f94c8c4b8cc4ad8b3f |
|
BLAKE2b-256 | 720c96a444ae7aa7b100b90fb29394eb16e7b178370129710a5093aa687743c8 |