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.27.tar.gz (2.6 MB view details)

Uploaded Source

Built Distributions

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

BayesBoom-0.1.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (118.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

BayesBoom-0.1.27-cp39-cp39-macosx_12_0_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for BayesBoom-0.1.27.tar.gz
Algorithm Hash digest
SHA256 d84b9d400bcea42f9aeb864fd8dd26133f74567989109d47cc8344abcdd98a67
MD5 67934406bb1fafb33d665d76cfb91bec
BLAKE2b-256 5ac1f4050d2903433a12263a2ba4f427b26a409e12bb463c0a52c75049fc102a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 84602804ef55c18690071ea333191a596e4d2de381bc144a29a8540aee5687e8
MD5 7929976ab36575e43cc8ff37bb748be0
BLAKE2b-256 66194469817477f64b6d213ba7430da3f6c6cfb896de6ab293aa4c5800da60a2

See more details on using hashes here.

File details

Details for the file BayesBoom-0.1.27-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for BayesBoom-0.1.27-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f5f6f9cb2b3d12193f2f2c0ebdc857e1ca230ea778c1f321c46c7812ddb7b8c1
MD5 95ce6aaab0b1baa4c9a3e6fc55c71b42
BLAKE2b-256 672d8c3fb2d65e76bd7288fba3f9fb4a8e3ab7bae2c21d0b3790a1631e18f60c

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