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.11.tar.gz (2.5 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.11-cp39-cp39-macosx_12_0_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

BayesBoom-0.1.11-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (146.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: BayesBoom-0.1.11.tar.gz
  • Upload date:
  • Size: 2.5 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.11.tar.gz
Algorithm Hash digest
SHA256 b55afd15e009f9f911e4b92621929a121620d616549588d0c363dfde6d0b4315
MD5 9dec51150cb8929607b93777b5b9820a
BLAKE2b-256 e0e8e8ef02cec9174c2656fe6fcc697a84f6a9b7e7a18feb6f915ece3ff57202

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.11-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 dcf61ae20eb19e664a39e8c34b951956d0c93e2a8d4f15529e1de141852bf9d9
MD5 01e889c8c0025d50817c51577e06fe51
BLAKE2b-256 46227a4120d50585e25692ec2cf25b8f9a29011080ef775c9cd11bb9284810e7

See more details on using hashes here.

File details

Details for the file BayesBoom-0.1.11-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for BayesBoom-0.1.11-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 07620d67b401e1e7731f63aeb44d8ba54ce75165b3e92c8b2698af4ba178bb31
MD5 ac4b1ef4f2571cda3dadd72e41431d65
BLAKE2b-256 0e0be3c9215875be421089065a9938df87a76ead52d5c8109f557d53ed85e563

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