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.24.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.24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (118.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

BayesBoom-0.1.24-cp39-cp39-macosx_12_0_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for BayesBoom-0.1.24.tar.gz
Algorithm Hash digest
SHA256 d7e28fa0524c1f62e54f18e2adf6079f4d4754d2f562f8b06eb7d56ccdfd006d
MD5 04e588c3ac3ca219ed61e2784076a502
BLAKE2b-256 5c2e94614f3b33dc6a967659ed9b45f626944f881180950c0dfe9fa303980cb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eeb7a2edaf216c02b55c0e589497d88de3b6edf4ca2a1a9f19516f5003c68856
MD5 c6feff6993a103655faefac97888ec3f
BLAKE2b-256 819ac5f491e846798885bb0722ac40494ae481f4d01d21a1fed887ceb6362426

See more details on using hashes here.

File details

Details for the file BayesBoom-0.1.24-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for BayesBoom-0.1.24-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 e89abbc580336075894ef69658a7d2344f28ddc899444dd6cfc8dc2fb531c20a
MD5 5fbdf402f5b1d71733a5ffd3ba1b0bee
BLAKE2b-256 20ed7accee0c05eedad25afee9c81a645d128226b8dd21c5c4c758f0fa5009fd

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