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

Uploaded CPython 3.12macOS 14.0+ ARM64

BayesBoom-0.1.32-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for BayesBoom-0.1.32.tar.gz
Algorithm Hash digest
SHA256 0c96571e724351ba2386feb422b2e19a50000224995663d3746b8f6f6449984f
MD5 0e4b5089f86b6f819b703ddea14f7de6
BLAKE2b-256 bfe16538f56fc1fa6c30a7925a1100c1e1012726363f0f5623b7af871d695491

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.32-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 30af4c3b71b2dd96dfcec4adcb7eabaca19b434159730f839b332711bedf2cd4
MD5 26fe5084c913f89ac0e03af06cabe44d
BLAKE2b-256 553a1a8f4d535334df3d7545815f3279f399615c4a5b5cfc9a59b4d1243948b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.32-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1898edab5e589bbaadb68b957ea16354bd2fb5a2003cc5be19448086c20f218
MD5 155a1b9012c33fe36e66bb10760b6dc1
BLAKE2b-256 6e9860eba307e2ae6a82158349d1d44f627300ecd0114b60c61322a6013da385

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