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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

BayesBoom-0.1.28-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.28.tar.gz.

File metadata

  • Download URL: BayesBoom-0.1.28.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.28.tar.gz
Algorithm Hash digest
SHA256 a1ab90d92b52d4752bfe3d04490431585290bc4ebfe5b5a727892264c483f7e2
MD5 18a90342541810fa286a1f19566bfad2
BLAKE2b-256 ce3729a58110720d9b19416ab29a70ed4b8e09d265be788d2758a7ec8d87c446

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.28-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6b33105e50f829920606ca673076211623032c65c88e276367da9c0df27ee09
MD5 152a200aa6387a847b606347e40583d9
BLAKE2b-256 ffa4df7e52cb4d9091b452492607c0a64137d778bbe77123e134b5824f6c59ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BayesBoom-0.1.28-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 738cb7182462ad9714aac4808728a9e7a38b21674eeb53d6104a70ca76bff93d
MD5 0b32e0c8b402f677aa1827d30ffa2dc8
BLAKE2b-256 f295206a37d5f816982709af733507f721c2054b62cdf50f0754117be1b3f540

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