Skip to main content

Probabilistic Programming Language for Bayesian Inference

Project description

Bean Machine

Lint Tests PyPI

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.9 and PyTorch 1.10.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beanmachine-0.1.2.tar.gz (433.9 kB view details)

Uploaded Source

Built Distributions

beanmachine-0.1.2-cp310-cp310-win_amd64.whl (826.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

beanmachine-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

beanmachine-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (916.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

beanmachine-0.1.2-cp310-cp310-macosx_10_13_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 macOS 10.13+ x86-64

beanmachine-0.1.2-cp310-cp310-macosx_10_13_universal2.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 10.13+ universal2 (ARM64, x86-64)

beanmachine-0.1.2-cp39-cp39-win_amd64.whl (826.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

beanmachine-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

beanmachine-0.1.2-cp39-cp39-macosx_11_0_arm64.whl (917.1 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

beanmachine-0.1.2-cp39-cp39-macosx_10_13_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 macOS 10.13+ x86-64

beanmachine-0.1.2-cp39-cp39-macosx_10_13_universal2.whl (1.5 MB view details)

Uploaded CPython 3.9 macOS 10.13+ universal2 (ARM64, x86-64)

beanmachine-0.1.2-cp38-cp38-win_amd64.whl (826.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

beanmachine-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

beanmachine-0.1.2-cp38-cp38-macosx_11_0_arm64.whl (916.9 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

beanmachine-0.1.2-cp38-cp38-macosx_10_13_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

beanmachine-0.1.2-cp38-cp38-macosx_10_13_universal2.whl (1.5 MB view details)

Uploaded CPython 3.8 macOS 10.13+ universal2 (ARM64, x86-64)

beanmachine-0.1.2-cp37-cp37m-win_amd64.whl (825.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

beanmachine-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

beanmachine-0.1.2-cp37-cp37m-macosx_10_13_x86_64.whl (997.4 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

File details

Details for the file beanmachine-0.1.2.tar.gz.

File metadata

  • Download URL: beanmachine-0.1.2.tar.gz
  • Upload date:
  • Size: 433.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for beanmachine-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb69b2ac1327e7e0d462d4aaebaa5c8910de2af71dd2a2eeece032d45bb29cc3
MD5 a24966aab842ad6f8447fc2ee06489d0
BLAKE2b-256 b06ef8156ad4819b2cd94c9765dd6a2884f918cf7929f475918d6a9683468b0a

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9db4ab01aa695af37060077d750794725e8dfe19d32feb81e25b86c7cfef0070
MD5 1a0c57e0beab9d0679c4455e6e4b42b6
BLAKE2b-256 747ea471abdb6d60795f62a2e1e301928065555689da669fd0c3c89965368886

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 424b13c65750900f9aa044d26e1bbb98837c79838af68a5ab8fccc5229ff01b9
MD5 6977520dfa33ae6c69b88f7792000f4f
BLAKE2b-256 c6431c24a6ef4de27a7af548e8e838460eb7f2ff9d69dfb4d6a1a6e679bb4811

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e86ec2693410060344138c607dff9b8ef0d2cc987f7b380bd6c12c00bc3ca360
MD5 f204a4896f56e380e7622da5fa76b691
BLAKE2b-256 902fd26df67f7b57cd57efefafc2a76c9d579ddc1c0d5e38eb1179f50e916c81

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 82a991d16ae55da51a6f7354aff77e6439a5cfcf3f700841c9915d7eb55a42c0
MD5 d39cbdee263ce350341c75a12bd642ef
BLAKE2b-256 12665a2818c9e03706dbb790c7db4d30e6ad0f00229601a3b1bea803558376a9

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp310-cp310-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp310-cp310-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 8442e3e8a5474700a7587817b5c5a8169475a0cf7eecc25e5ec2ba719edf3977
MD5 0ef11c46773156c84b9452e85e2feb99
BLAKE2b-256 45e2b679b7519f2144ea051e38dc26b5a066583cd2960998e6bc342ebdee6f81

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 05c0b152deafbb2caf68ea966876e2ca219f2431f348f0854a5e2d36b89429ce
MD5 3c8f861c934cc21295e9480ad8371fab
BLAKE2b-256 ce8947f45ee75f262ffc3e68a596de78a7bfce80808b58b94159946744c66a18

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78365c1d43865331cc3acb5d8bca9fa0579d20bf58890105b38209c2fab6e77d
MD5 3788590aa59d17b290b798c090c80b88
BLAKE2b-256 0bcde787a0a81d3cb99538eaeda38fc03ae3b15ee55cd05129bef9dd5550a40b

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 785c3e0a5134ce11a23a63e7d10274dd477a64adf23d5b87dfb522bc9fe01543
MD5 021cf81d460cda7c25e055ba04dfc34b
BLAKE2b-256 61ed63fcbe65a4c799ccdc0d2b5589da6bed7804626b1465ba8b3b18cd42d297

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 30b9e4d7496a6b6e5ffaedb2c34de67eb9cd4a3fca8b3a7b5f8cf1ef63413ec1
MD5 c7c8da31d11c57af78716dfcbf32438b
BLAKE2b-256 2417a7ff11f08c0f29360695ae5236e03f1299474491aa6289afdf7ba3f946d5

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp39-cp39-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp39-cp39-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 8fbe2fe7731bae7bb3e145284f17d4658a0b46abe835e67b934a820d9a6333a7
MD5 a45de5abef2e4c8639697490331a7d13
BLAKE2b-256 5abdd323006971b2c79db74eb721a8415c73fe43e73547cd4e0e7cd53d1404e4

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db097555ab2f804b1ca1353565c9ca948c5015da4739fc9e5b15fa1ecd3ef7ed
MD5 9a9fbc448516bcc6c9f9fe42afe3f71c
BLAKE2b-256 3e2dc87a6583a9542ead7a9fa7ca2725e708b866065fb59174fb0d495360e45f

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a800699a41f6ef8f40b1cac8a283f2bc36ef38c9de26f0cc822424a617d105d
MD5 573166eb2cb94e611f5143225cd533e8
BLAKE2b-256 a3046627b9bbddd9bcd8b1813a311265cc5718c8cecafeeb27aa308ab5fe45b2

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a916af78e0b8aa6e16230ebff2e8b9c68e098d8cb2b38858f6a6104c6c6d896
MD5 26701eb6c4dd00271bf722427f811c64
BLAKE2b-256 574fac696a09c82a50b799d7b351a16acbb8fba63743c32d8f5d00f258436b50

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2ac898bb7dc8f3c2dfbe31f1584a5a48d7691bd7b7e1d8dafff65012f696a174
MD5 f3094046a290654a7baafa5f8ce21920
BLAKE2b-256 6ee4ebd55df276a3d944f30eb1a97b94371fe1eaee657c58a3310ee6c075bede

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp38-cp38-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp38-cp38-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b3b40420b57cf82a68abfbd119fb40584e9587e25a250ef514f98d3ac99fb642
MD5 de29827bce1ddceb053270558589c04a
BLAKE2b-256 91c0ef029656143e24c37600d50a2ea5940cc8b53d316b0823439fc1d5cfc146

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3fd4e792df4fa652cc8a2d66e00579368c3d7958702b4afb9569207565b17bda
MD5 c811b281f872bedcc9e97dcf59ab50d2
BLAKE2b-256 cfd6bc024eb06e5ccf004a597424ca67373790ab5a13520230be43da42452ba3

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 724953a627c69148c393445a803243966cd5a9c20a1d1251d85379fab809715d
MD5 72ab1cf67728796ede55a64833f1b2a6
BLAKE2b-256 236b39a4793a5d1f9debbc44712173a832f689402109c7dcec10a2c48ae2f032

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.2-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for beanmachine-0.1.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 414f7756abe69eb46f511b6e3c9d75916be540c6d9a5db8bdc79b1850a8e6e07
MD5 9447f034ac01aebe29b47a633624da70
BLAKE2b-256 f81e1f3239ce8a620b7ebeadac2b5cb9202b5e4fef8af669edaa01d8051fdb6b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page