Giter Club home page Giter Club logo

tachyon5 / boom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steve-the-bayesian/boom

0.0 1.0 0.0 9.63 MB

A C++ library for Bayesian modeling, mainly through Markov chain Monte Carlo, but with a few other methods supported. BOOM = "Bayesian Object Oriented Modeling". It is also the sound your computer makes when it crashes.

License: GNU Lesser General Public License v2.1

C++ 87.62% Makefile 0.04% Python 1.53% C 0.32% R 10.19% Shell 0.10% Starlark 0.19% CMake 0.01%

boom's Introduction

BOOM

A C++ library for Bayesian modeling, mainly through Markov chain Monte Carlo, but with a few other methods supported. BOOM = "Bayesian Object Oriented Modeling". It is also the sound your computer makes when it crashes.

The BOOM project began around 2005 while I was on the faculty at USC. It continued during my time at Google. Google claims copyright on modifications to BOOM files between 2009 and 2017. Copyright for changes made either before or after that time is claimed by Steven L. Scott.

Installing the library

The primary build system for the BOOM C++ library is bazel.

bazel build boom
bazel build -c opt boom

If you have difficulty building the library, check local BUILD files for compiler and linker options that don't work on your system. -lpthread is required on linux but prohibited on Mac. If anyone knows a portable way around this I'm open to suggestions. There is also a Makefile which might be a bit out of date.

Most people interested in BOOM probably care about the R packages. To build the Boom package, you will want to run the install script

./install/create_boom_rpackage -i

from the project root directory. This will install the Boom package on your machine and create the Boom package in the rpackage/ directory. Once Boom is installed

./install/boom_spike_slab -i
./install/bsts -i

will install the BoomSpikeSlab and bsts packages.

These scripts involve lots of copying files around. Some of that is handled by a python script install_headers.py. Please make sure the hashbang line at the top of that file points to the version of python you want to use.

BOOM and Python

I have played around with pybind11 bindings for BOOM with the intent of exposing the library in Python. These should be considered experimental, but I'd love help fleshing this bit out.

./install/pyboom

is probably what you're looking for.

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.