Skip to main content

Probabilistic Programming Language for Bayesian Inference

Project description

Bean Machine

Lint Tests

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

Install the Latest Release with Pip

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.7; conda activate {env name}
conda install boost eigen
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:

# install pytest 7.0 from GitHub
pip install git+https://github.com/pytest-dev/pytest.git@7.0.0.dev0
pytest .

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.0.tar.gz (349.9 kB view details)

Uploaded Source

Built Distributions

beanmachine-0.1.0-cp38-cp38-win_amd64.whl (732.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

beanmachine-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (959.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

beanmachine-0.1.0-cp38-cp38-macosx_10_14_x86_64.whl (837.3 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

beanmachine-0.1.0-cp37-cp37m-win_amd64.whl (732.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

beanmachine-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (962.1 kB view details)

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

beanmachine-0.1.0-cp37-cp37m-macosx_10_14_x86_64.whl (828.6 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: beanmachine-0.1.0.tar.gz
  • Upload date:
  • Size: 349.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for beanmachine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 528ef461e055a8160305319863169346c70d5b866706204d837a3a5c44dbcb49
MD5 ac2d7162afb78e12d717097def34c109
BLAKE2b-256 2a1c4d9882b83986c29d8eb9b8f1f95a344fa56d2cbdaf9dffea1e3b23dd3d3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beanmachine-0.1.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 732.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for beanmachine-0.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bba40366c4bbdc3c3c8d9d68302bf98358d0753d275cbd3aa2312c897f49fe7a
MD5 d7f55da320b7dbcbe1b341cdee8ad06e
BLAKE2b-256 c4931841cbd8814c7ca6b09c612569a66ebcf421f8a71806c8a3ac33891a64be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for beanmachine-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fdf192a8e141386cd7de36cc4189ca01dba480efec06d9ae20fdd9665d87d26
MD5 45676b5d55752f8ad0e9f873dbfcd23d
BLAKE2b-256 c4603933425948f3313642f2a69f1a30456f0fdc36db370a4a528e1326bf33f9

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: beanmachine-0.1.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 837.3 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for beanmachine-0.1.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 46b2ff50ffb1a706543c1cb7348ec1c03fb5287342b44f3ab3f9448a14f69876
MD5 2ab1fdb00c3ea3180171fc30e41b5e6b
BLAKE2b-256 c6f79b1926c9bde1fb402eccd7c671f167526f6ac962918eb27c2e2e73f11a76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beanmachine-0.1.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 732.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for beanmachine-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 61226be5c09bf28724ab00424df18cef39a136f17bb14965f1d0256713e73b8d
MD5 ea6e2e2765af4a1a4e1fcd88e9582ab2
BLAKE2b-256 7d15f97dccbd68f3772a48c80c786e83a86cd6a4958746c834cf7a02f25dd016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for beanmachine-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8598973a5de9a4c5dd8e60e5de6c2abb222324c9e9cd5f2c2f212d618b046ba
MD5 4981a82b591d9aecd01df2d7620b4cb1
BLAKE2b-256 9bf288baa936a66d787fe8b876887712c01a6e74b1f3297b7c4f6739b3a3a39a

See more details on using hashes here.

File details

Details for the file beanmachine-0.1.0-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: beanmachine-0.1.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 828.6 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for beanmachine-0.1.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 cfeba1d89e261d6df130568e5655dcd684d6bca1243f8a9ac245d6a971d4a9a1
MD5 b2cea2002a46c33c86bb90de575ceac4
BLAKE2b-256 bc343ea59867be6a09cbb50012084063bcb94ed475872c4d7c139bb70566d4f3

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