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.2.5.tar.gz (2.7 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.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (137.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

bayesboom-0.2.5-cp314-cp314-macosx_26_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

File details

Details for the file bayesboom-0.2.5.tar.gz.

File metadata

  • Download URL: bayesboom-0.2.5.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for bayesboom-0.2.5.tar.gz
Algorithm Hash digest
SHA256 2aeba82d0fbd2a161407d5064d74080f5bf9cd737e4040815c1c1000212e18e3
MD5 6636129f2e488280c75db64dc9015936
BLAKE2b-256 ccd43d0d3fa3bc762d5284ee7efdeb3a601f1ddb30a9c79aaf5169dba3910985

See more details on using hashes here.

File details

Details for the file bayesboom-0.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for bayesboom-0.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 439036f99e2f4f8e7fe1767330f2a88eaade44db0ab2318495e712bddde640fe
MD5 f0637b2c0767d654b98df2b227d33d4b
BLAKE2b-256 09a50dc1bf559f156b28b3af8fe201a316901f5d7bcdb024562e5a392a09c8bc

See more details on using hashes here.

File details

Details for the file bayesboom-0.2.5-cp314-cp314-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for bayesboom-0.2.5-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 a5ff5e34c6da7ca4097b23d5007db676e5925e2e25bb8c085630d90f5e56f474
MD5 c72179ba089ab61d948887e534a2d114
BLAKE2b-256 f32e3d3184b5732352dc660cf22591d960eed89bdc8704618a02559106be872b

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