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.1.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.1-cp314-cp314-macosx_26_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

bayesboom-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (138.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: bayesboom-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6b5e5f7832eea92c744828714b908805654505335b61a2d71f19f681f06fc8d2
MD5 4eda7289db46fb448d5b7a216d25200e
BLAKE2b-256 48ba2d1e15cf26ea0a5934c1c3cbd2118b03ff312d618cba90c3d965b8746f00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bayesboom-0.2.1-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 dd11363f3563739a64986abfb258d783778d153f90d4b58f63639485226c9d4f
MD5 e053d98a273dff8ee5f6f2134b8aa9fc
BLAKE2b-256 8737c6bf83393b63131e1e10e6ed441498ad3c349e8e9fff803a271566ba351b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bayesboom-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2075f9d6e7308f29881b53e1869dfa2625e87116162cc8c42774cf687d0c1de8
MD5 a372bcd87f520e0c45a1f0a9a48c96ab
BLAKE2b-256 41457375fcf29071640c8f37a7298813a0d9e6a64c4332ca975c6f3036d65171

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