Skip to content

A library that allows for inference on probabilistic models

License

Notifications You must be signed in to change notification settings

ludgerpaehler/beanmachine

 
 

Repository files navigation

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

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:

pip install -U 'pytest>=7.0.0'
pytest .

License

Bean Machine is MIT licensed, as found in the LICENSE file.

About

A library that allows for inference on probabilistic models

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 94.0%
  • Python 4.5%
  • C++ 1.5%
  • JavaScript 0.0%
  • CSS 0.0%
  • Makefile 0.0%