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.2.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.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (136.7 MB view details)

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

bayesboom-0.2.2-cp314-cp314-macosx_26_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

bayesboom-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (137.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: bayesboom-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1fb18e0e4a7d523f12145ccbaf53ae4b4fde863f9545e2799c97c9414010f8e7
MD5 5b537d17aeb1bd0d0e085991ffbec940
BLAKE2b-256 dbd12f33afc2f574fa1339d6a10c8cc2cb0cdb6cbb155ec3c81f5676e2126cc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bayesboom-0.2.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 179e66ab71fef54ce30dfba040485809be7228fa8a42c7538a94cc4fc2eb1b10
MD5 39bb51f746c3562d2708a000d51c2344
BLAKE2b-256 a911ecd4cc4b90ae9103e7cb723f054a4c079ed3bf28f7756a95f0858cbe3bdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bayesboom-0.2.2-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 83ea53ec6bd64521e28ea9d67e03b5fbdf505390d4b9936444ee99eab94fb327
MD5 170d2011c980c6009ca641091cd00ecf
BLAKE2b-256 ec2361d436a9553cb60b79150c084634d924a7f176c7f78b7d84bacb55187d27

See more details on using hashes here.

File details

Details for the file bayesboom-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for bayesboom-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 172e0afceb7f72f6f32c2b273e018693097d12b62dd02f33565c616118a4c842
MD5 950c7becbd0f13d235d16dd2e34716d3
BLAKE2b-256 cf49b8f3dc08533cb88653393ebf7e791ea540023f27efacee4d74125416885f

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