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.1.19.tar.gz (2.6 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.1.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (118.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: BayesBoom-0.1.19.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for BayesBoom-0.1.19.tar.gz
Algorithm Hash digest
SHA256 31caed2e6a75bc19954253806f24d872fb6aa846b3c0e4644cf0d2efd35c94d1
MD5 18a0d07519326728c7137d8f08f411a0
BLAKE2b-256 91422fad865b3e2b8510edb6d148d77a7725695f9780042169fce5a2a4c326d2

See more details on using hashes here.

File details

Details for the file BayesBoom-0.1.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for BayesBoom-0.1.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49cd6189b112ef7c75ee9db3df053df8c50150d9039e2ae1f4b5005f41a09358
MD5 1e9518ff7e03a1a7cbd6daa2fb867b2f
BLAKE2b-256 8b3c8e087b20b08bcfa4aa825d8f7080b416530b74f419ae5cd52d1154392b9e

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