Skip to main content

BayesDB

BayesDB, a Bayesian database, lets users query the probable implications of their data as easily as a SQL database lets them query the data itself. Using the built-in Bayesian Query Language (BQL), users with no statistics training can solve basic data science problems, such as detecting predictive relationships between variables, inferring missing values, simulating probable observations, and identifying statistically similar database entries.

BayesDB is suitable for analyzing complex, heterogeneous data tables with up to tens of thousands of rows and hundreds of variables. No preprocessing or parameter adjustment is required, though experts can override BayesDB’s default assumptions when appropriate.

BayesDB’s inferences are based in part on CrossCat, a new, nonparametric Bayesian machine learning method, that automatically estimates the full joint distribution behind arbitrary data tables.

Installation

Docker

BayesDB can also be accessed via a community-contributed Docker container. Install instructions for Docker can be found here.

Once docker has been installed and configured enter the following command in your terminal to download and install the Docker container (this will take a few minutes):

docker pull bayesdb/bayesdb

To run:

docker run -t -i bayesdb/bayesdb /bin/bash

Local

BayesDB depends on CrossCat, so first install CrossCat by following its local installation instructions here.

BayesDB can be installed locally with:

git clone https://github.com/mit-probabilistic-computing-project/BayesDB.git
cd BayesDB
sudo python setup.py install

If you have trouble with matplotlib, you should try switching to a different backend. Open a python prompt ($ python):

import matplotlib
matplotlib.matplotlib_fname()

Then, edit the file at the path that was outputted, changing ‘backend’ to another one of the available values, until the matplotlib errors go away. Good ones to try are GTKAgg and Agg.

Documentation

Website

Documentation

Example

run_dha_example.py (github) is a basic example of analysis using BayesDB. For a first test, run the following from inside the top level BayesDB dir

python examples/dha/run_dha_example.py

License

Apache License, Version 2.0

Release files for BayesDB 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BayesDB 0.2.0
File Size Uploaded
BayesDB-0.2.0.tar.gz 110.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for BayesDB 0.2.0
File Interpreter ABI Platform
BayesDB-0.2.0-py2.7.egg Legacy Egg format - - Details
BayesDB-0.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 525.7 kB

Release files / BayesDB-0.2.0.tar.gz

Download URL BayesDB-0.2.0.tar.gz
Size 110.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c72e92c29b52d2d9666c60650afb5cb19700ce6db72c93d58f79a64f38c6c524
BLAKE2b-256 checksum
How to use checksums
cf036f9835ed644e53f79c0238f04d757c640407a87b94067caffdee6a5c10cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / BayesDB-0.2.0-py2.7.egg

Download URL BayesDB-0.2.0-py2.7.egg
Size 283.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
3039c02e8bbec63ee0ba84a7e42f2c440c2a9f51fd9f4e9ea660daf2c09d8417
BLAKE2b-256 checksum
How to use checksums
c492ff525f8972c2e6a26d1f8b05297eabca89c7fc7f4201a4ab8c1939fc513c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / BayesDB-0.2.0-py2-none-any.whl

Download URL BayesDB-0.2.0-py2-none-any.whl
Size 131.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
1463259b167dadf37d56b6ef3ecbb7c6c6190714ad3786bb3259069ba9dcdab1
BLAKE2b-256 checksum
How to use checksums
e68d3f96a84bde558a0c7e2586b26d8bb5bccac4d0f3d46a93cc8247c8b0fb1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page