Skip to main content

Tools for Bayesian modeling.

Project description

Boom stands for 'Bayesian object oriented modeling'.
It is also the sound your computer makes when it crashes.

The main part of the Boom library is formulated in terms of abstractions
for Model, Data, Params, and PosteriorSampler. A Model is primarily an
environment where parameters can be learned from data. The primary
learning method is Markov chain Monte Carlo, with custom samplers defined
for specific models.

The archetypal Boom program looks something like this:

import BayesBoom as Boom

some_data = 3 * np.random.randn(100) + 7
model = Boom.GaussianModel()
model.set_data(some_data)
precision_prior = Boom.GammaModel(0.5, 1.5)
mean_prior = Boom.GaussianModel(0, 10**2)
poseterior_sampler = Boom.GaussianSemiconjugateSampler(
model, mean_prior, precision_prior)
model.set_method(poseterior_sampler)
niter = 100
mean_draws = np.zeros(niter)
sd_draws = np.zeros(niter)
for i in range(100):
model.sample_posterior()
mean_draws[i] = model.mu()
sd_draws[i] = model.sigma()

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

BayesBoom-0.0.11.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BayesBoom-0.0.11-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (131.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

File details

Details for the file BayesBoom-0.0.11.tar.gz.

File metadata

  • Download URL: BayesBoom-0.0.11.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.10

File hashes

Hashes for BayesBoom-0.0.11.tar.gz
Algorithm Hash digest
SHA256 3087db944fe06dd1d80e9a0d4f3a85c63e65306523efbb6e51819ed78e352957
MD5 f2088126a503a8fc326b35f20944140a
BLAKE2b-256 132692a900527c8fe4bd93247685dfc64e9f2c8a348657f32aaaf151b3bf4933

See more details on using hashes here.

File details

Details for the file BayesBoom-0.0.11-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for BayesBoom-0.0.11-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 14a5d00722c210b3720bf8643392ffac00fead793b44e1506295b27b0786fda3
MD5 209949d7ed7c13ef4adcb94987f26b54
BLAKE2b-256 7a308fabdf74fdfdc974611165755d235a7ae0f9396defef0db249b4923ae2eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page