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.29.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.29-cp312-cp312-macosx_14_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

BayesBoom-0.1.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (120.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for BayesBoom-0.1.29.tar.gz
Algorithm Hash digest
SHA256 1a2ed58bd3b2d89f06d810919bd1114b3a7d9cf2dbe6f1bf99a9e47f33b75dfe
MD5 59d81708744b24bf7e8568e5b187038a
BLAKE2b-256 1d8f71ced33048345ee39e0f0494c91b6fdfef51457808c35c7cc38f6112bc6e

See more details on using hashes here.

File details

Details for the file BayesBoom-0.1.29-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for BayesBoom-0.1.29-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 72773b8961f14deedd9438880984811bcf022776aef230da90af8c07fa2fa317
MD5 2a618372b416a641b7297e150e8f92d5
BLAKE2b-256 dac7955357c996fe7219c02bf5edff11d0f6e476d6909af2061a468add2acb3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BayesBoom-0.1.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 120.1 MB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.32.3 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for BayesBoom-0.1.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 32b23797a27d2b6d7192d2e307f091146ed022590eb9d7a9b609f4d18792352c
MD5 cc05657ed53177d87d74d51a26e3f35d
BLAKE2b-256 81ae3e5f2d42a6d9d962143d27d8030ee3d30be366d642a885eac02163668554

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