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

Uploaded CPython 3.12macOS 14.0+ ARM64

BayesBoom-0.1.34-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (124.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

BayesBoom-0.1.34-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: bayesboom-0.1.34.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.34.tar.gz
Algorithm Hash digest
SHA256 2b75041a30182950c834fd8034ce5bd41d5af09c4232576881b221daa1ecdeba
MD5 c786fc8c01a49e11825cc36eb3e53033
BLAKE2b-256 853d8df797b9cf5a7cff6925d86253c3bc09b34da6681b5af83d5aaa4f57c448

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.34-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 320ef5b35cef05d196369d41eec8e7f8b031254ea89d0018e3009f7ef85e6bcf
MD5 08dc978cbec017b9cee546e5563ac7ec
BLAKE2b-256 daf81be9a4da546ba5f4c5f15c4d058463b6876edec93f988b390d4514b83f53

See more details on using hashes here.

File details

Details for the file BayesBoom-0.1.34-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: BayesBoom-0.1.34-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 124.9 MB
  • Tags: CPython 3.11, 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.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for BayesBoom-0.1.34-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3eaeaddfc638d81004b5b48a5571d9a82f058a5b5ab533d346e2ece1b6a49bcd
MD5 9e83de5c900d29c6151183ee8acb384e
BLAKE2b-256 4353eb69b103bd3a9b7f3403308b07638213dffcacee6c11c5ebcfc94da4f671

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BayesBoom-0.1.34-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 121.3 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.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for BayesBoom-0.1.34-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa45e04e2c72dd92a2792e40656f7ec52f99c18221082a5e95994b1df9e770a8
MD5 8aea3f863209e063626122fd41b4a75d
BLAKE2b-256 557d0ea06701dc54f79c421a21dbe50312a7522922b4a9593ad32b82079788f2

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