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.
Metadata
Release files for beanmachine 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| beanmachine-0.2.0.tar.gz | 450.3 kB | Details |
Built distributions (wheels)
Total release size: 20.8 MB
Release files / beanmachine-0.2.0.tar.gz
| Download URL | beanmachine-0.2.0.tar.gz |
|---|---|
| Size | 450.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2424fde5959f1a37827ece8c7a83f12a09f0a19330b209b0d9d437d4ab5c2b58
|
|
BLAKE2b-256 checksum How to use checksums |
85b78aca535b18561eec9576eed7c214efa641ab4b70a2f856aef42f1abdb31e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp310-cp310-win_amd64.whl
| Download URL | beanmachine-0.2.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 881.1 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
802ab28d7a3cb908861e781480f9ccf974c782c76b406d6b2c6f4fe221c3f4ac
|
|
BLAKE2b-256 checksum How to use checksums |
49f1d041720482761f880a40524dc535a8167ea196261c5a1e33b070b684d080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | beanmachine-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
fed8ca6fadbd745eae1f6dd1355e391684af8328739394623d0902fa37a65eab
|
|
BLAKE2b-256 checksum How to use checksums |
368afc5dbc71dfcd7a732823e45e754bb2e094375483d025b52b0310356c6760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | beanmachine-0.2.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 963.2 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7f2ac014f3ab55c1fd8c26ea25c09f5b5c3d8d8940afac8f6bec2d74e0e66ffb
|
|
BLAKE2b-256 checksum How to use checksums |
515c98a8fb3f781b4653a6c12079b6a409087807a622991fa5353ed570f0ef86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp310-cp310-macosx_10_13_x86_64.whl
| Download URL | beanmachine-0.2.0-cp310-cp310-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
92e8b6fc5c709db02645716dcdde883751667321e0db9a38f07b1c72177fcfba
|
|
BLAKE2b-256 checksum How to use checksums |
5e047c546041d39e3fe27eaa38a83b95aa8c51f3ab4e147463ddb2b0d27a14b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp310-cp310-macosx_10_13_universal2.whl
| Download URL | beanmachine-0.2.0-cp310-cp310-macosx_10_13_universal2.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
3929555e5f553c6c2a7b62ce709a6e5865b7b1bb31c685db0a86b9b253eeff56
|
|
BLAKE2b-256 checksum How to use checksums |
4094b4ac658ce63f8ac9c7046819a52c135bf32f9b80c2031a6c591e701a2b77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp39-cp39-win_amd64.whl
| Download URL | beanmachine-0.2.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 877.1 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
54bef2401a650868569c3c554daca75d497cc422334efb661498abb951b73cae
|
|
BLAKE2b-256 checksum How to use checksums |
52e0ac88362318d9197c719a15d390273e51ced6bb47b9ec2edb33040588e916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | beanmachine-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
aabc3842875cfd27ef58afb401861ff5f731fb9f72796d632ee0dc5c64e1edd1
|
|
BLAKE2b-256 checksum How to use checksums |
4382ec89890db5c50660c33e4e1ef43c993d925aff34e244264e8a218570d47f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | beanmachine-0.2.0-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 963.3 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
26187d0d090c99e929d370c6e6a9a03c032ad0abc25a717e2877b2e3ea22cd23
|
|
BLAKE2b-256 checksum How to use checksums |
8c7f748858fab5a8daf941c6ac2f2f26878998ac56e92a851b72ee00e8b5ef46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp39-cp39-macosx_10_13_x86_64.whl
| Download URL | beanmachine-0.2.0-cp39-cp39-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
1b0bf402abc15254966ebf5857137465475ecdf2483a0f3693a9fb3fe8af8d43
|
|
BLAKE2b-256 checksum How to use checksums |
a1b2d6c49f3c7fcd22df320333160005c198bd8c5b32138f1546105104070a92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp39-cp39-macosx_10_13_universal2.whl
| Download URL | beanmachine-0.2.0-cp39-cp39-macosx_10_13_universal2.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.9 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
989496332fae83ea8b38f9396542d273f92a8c276567a742ccc9316dd60bf0f9
|
|
BLAKE2b-256 checksum How to use checksums |
8822e95f1ce9b2832dcfce3f5d8fe68f6de97ab063bd299b6a7b038f1e6444ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp38-cp38-win_amd64.whl
| Download URL | beanmachine-0.2.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 881.5 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5b60b6d55b6110cce0728d8dc6a49519b5746534495b8ec8499e72c52902e20b
|
|
BLAKE2b-256 checksum How to use checksums |
e8b6517a9d6d12905380b68d1d44ed57c265a3ccbc5e2845d4ec7b0302a1484d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | beanmachine-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
effa1085206d71f974daf7552491a914251313989c762cecc9a4d87f7e5bef54
|
|
BLAKE2b-256 checksum How to use checksums |
68f57233a945b7d4786d451bf20c02a3be76f08abc4b8e3d62e6f1bd1f957903
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | beanmachine-0.2.0-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 963.2 kB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e402fcdefd66ff4e0c589e08b02e1bfa7fb053f72235c9506da5a6ca8c9e034d
|
|
BLAKE2b-256 checksum How to use checksums |
a0e2dacc39ee7493abe5715765bc1c1ef523c98b1b05eb2e88d724c5d00a7281
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp38-cp38-macosx_10_13_x86_64.whl
| Download URL | beanmachine-0.2.0-cp38-cp38-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
c3524b6bc17b5645fec2c3f2467b450269ef28419cb966c53911c20d1fcd0d64
|
|
BLAKE2b-256 checksum How to use checksums |
49a6d98fa96f23233d52e53bc1d3a0d774a8cf00fee30ec39772d2c06fe0417a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp38-cp38-macosx_10_13_universal2.whl
| Download URL | beanmachine-0.2.0-cp38-cp38-macosx_10_13_universal2.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.8 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
be387db09b50dc213495a06cd37cf9d0f1bcfacbe8c788cd4ca4324e5a3e0f4d
|
|
BLAKE2b-256 checksum How to use checksums |
8d032f5f52eca82001d2a4d893fd800b9495ecef6ad09366c698d8f25356b048
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp37-cp37m-win_amd64.whl
| Download URL | beanmachine-0.2.0-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 880.5 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c15e8b46229ca95bf2b28ebb702a218aa508e976ceaced1e62c57a8dc4a1fd63
|
|
BLAKE2b-256 checksum How to use checksums |
0c3251c69cd54c8bc55b832595cab108feac0ea3bf8327c834332b6293209836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | beanmachine-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e2e12a352ca414c03123b2667f4f11ebb58f8da7ab4feb753a5b1085cd6aad41
|
|
BLAKE2b-256 checksum How to use checksums |
efbdb129a9e72b325e4683e0c45706a5a43fd7c944dac01b7a8b90ae1723abe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / beanmachine-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl
| Download URL | beanmachine-0.2.0-cp37-cp37m-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
470ea5454705c408d152a644d811ec5a132f06b3b89602b8525b84d94ecec0aa
|
|
BLAKE2b-256 checksum How to use checksums |
720c96a444ae7aa7b100b90fb29394eb16e7b178370129710a5093aa687743c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|