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

Uploaded CPython 3.12macOS 14.0+ ARM64

BayesBoom-0.1.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (120.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: bayesboom-0.1.31.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.31.tar.gz
Algorithm Hash digest
SHA256 95851c78ef4e222ff0a9f8959c7fa55cb5aed541ddf7735b93501e560876c2aa
MD5 83fcd857c56c9ecd86fe4fab99fa4545
BLAKE2b-256 2775a9dcdf63244bcf94a0674780a94233f0bbdaa102b3635f60a10cc5038b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.31-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 daf8dcafec8714eff6697d9089e65ad2e0ea0020992543f1832987aa183d54bc
MD5 429fae7ea92b52dc19f062cedbeb4716
BLAKE2b-256 dfe92493d6d4c4dec625d05564e8b4e43eb1e230dea1586be0d806163ec15330

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 463454c041ad1715ffd9d19d8228d4b3368bbc516debacafb75fa4a5f4e33e06
MD5 f443d63363ad26f8c7adb88573a04f0b
BLAKE2b-256 72781476adb31c69ac6c8d2163999c1522c5655de3e4fb17b84f02f07293c89c

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