Coder Social home page Coder Social logo

jpchen / beanmachine-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookresearch/beanmachine

0.0 0.0 0.0 86.94 MB

A library that allows for inference on probabilistic models

Home Page: https://beanmachine.org/

License: MIT License

Python 59.53% C++ 38.86% JavaScript 0.50% CSS 0.08% Makefile 0.04% Dockerfile 0.01% C 0.01% TypeScript 0.98%

beanmachine-1's Introduction

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.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.

Package Managers (Anaconda and Vcpkg)

Installing Bean Machine from source requires three external dependencies: Boost, Eigen, and range-v3.

For installing Boost and Eigen, 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

There are multiple ways of installing range-v3, including through vcpkg:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install range-v3

Once dependencies are installed, install Bean Machine by running Pip:

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 .

License

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

beanmachine-1's People

Contributors

aishwaryasivaraman avatar amyreese avatar antonk52 avatar brianjo avatar cactuswin avatar d4l3k avatar dependabot[bot] avatar dmitryvinn avatar ericlippert avatar facebook-github-bot avatar feynmanliang avatar fizzxed avatar himaghna avatar horizon-blue avatar jakee417 avatar jknoxville avatar jpchen avatar michaeltingley avatar mootaz77 avatar ndmlny-qs avatar ntfrgl avatar r-barnes avatar rodrigodesalvobraz avatar saitcakmak avatar satpreetsingh avatar swkarlekar avatar toddsmall avatar vmoens avatar wtaha avatar zaxtax avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.